# Python 免安裝 ###### tags: `python` ## 下載 Python3.7 zip [Python 3.7.8](https://www.python.org/downloads/release/python-378/) ## 安裝步驟 ### 1.解壓縮至C槽 ![](https://i.imgur.com/e7Ptz6v.png) ### 2.新增環境變數 ![](https://i.imgur.com/iVFnHcb.png) ![](https://i.im.com/QXThhc8.png) :::success 點選Path=>編輯=>輸入 ;C:\Python3.7;C:\Python3.7\Scripts ::: ### 3.在 C:\Python3.7 中 新增CMD 開啟畫面 ![](https://i.imgur.com/yWk2ptr.png) ### 4.安裝Pip (可快速安裝套件) #### **修改 <font color=red>python37._pth</font>** ``` Lib/site-packages python37.zip . # Uncomment to run site.main() automatically import site ``` #### 開啟CMD,輸入以下命令 ``` cd /d C:\python3.7 curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py python get-pip.py python -m pip install --upgrade pip ``` ![](https://i.imgur.com/c2PD2Wm.png) ##### 安裝擴充方法 :::info pip install 名稱 ::: ### 5.安裝套件 ``` pip install pyautoit pyautogui opencv-python pylint ``` ![](https://i.imgur.com/ehmIlum.png) ### 6.驗證是否安裝完成 1. 開啟 C:\Python3.7 中的 <font color=red>**python.exe**</font> 2. 輸入以下命令 ``` import cv2 import autoit import pyautogui ``` 3. 無錯誤訊息-成功 ![](https://i.imgur.com/wtHTtLL.png) --- ## 接續 :::info [Visual Studio Code 設置環境](/JlglA8iJRiutmwfi2g4b9g) :::