發表文章

目前顯示的是 3月, 2023的文章

Mysql Event Not Working

檢查排程是否有開啟 SELECT @@event_scheduler; SELECT @@global.event_scheduler; 設定開啟 SET GLOBAL event_scheduler = ON ; How to force an event to execute in MySQL Move all the code within the event into a stored procedure Make the event only call the stored procedure Test the stored procedure with the CALL syntax.

python 套件安裝指令

  Table 一. 什麼是 pip 和為什麼需要他? 二. 如何安裝 pip ? ▍安裝 pip 前請留意 ▍Mac 的朋友安裝 pip 看這邊 ▍Windows 的朋友安裝 pip 看這邊 ▍Linux 的朋友安裝 pip 看這邊 三. pip 指令全記錄 pip 安裝套件 pip 更新套件 pip 移除安裝過的套件 查看目前安裝過的 python 套件清單 四. 如何使用 pip 一次安裝多個套件 一. 什麼是 pip 和為什麼需要他? pip – The Python Package Installer ¶ pip is the  package installer  for Python. You can use pip to install packages from the  Python Package Index  and other indexes. HTTPS://PIP.PYPA.IO/EN/STABLE/ 就如同上述  pip 官方說明  所述,pip 是一個 Python 安裝管理套件工具,如果你今天要使用任何與 Python 有關的套件,基本上都會用到 pip 來安裝或是更新 Python 相關套件唷! 二. 如何安裝 pip ? ▍安裝 pip 前請留意 目前 Python 3 的 3.4 版本以上 或是 Python 2 的 2.7.9 版本以上的 Python 都已經自帶 pip 了! 所以如果不是 Python 版本過舊的話,基本上不用需要安裝 pip 唷! 想要查詢目前使用的 Python 版本的話,在終端機中輸入以下指令,就可以知道目前的 Python 版本囉: 1 2 3 $ python -- version   > Python 3.7.7 ▍Mac 的朋友安裝 pip 看這邊 1. 到  pip document 官方網站  建議的載點下載 pip 安裝檔 1 $ curl https : //bootstrap.pypa.io/get-pip.py -o get-pip.py 2. 啟動剛剛下載好的 get-pip.py 檔案,就安裝完成囉! 1 $ python get - pip . py 3. 如何查看 pip 目前版本? 1 $ python - m pip -- version