Python安裝
安裝版本
Windows 10
Python 3.12
Python Releases for Windows | Python.org
環境變數設定
系統 > 進階系統設定 > 環境變數
新增剛才安裝 python 的路徑位置如下
C:\Users\[user]\AppData\Local\Programs\Python\Python310
C:\Users\[user]\AppData\Local\Programs\Python\Python310\Scripts
把這兩行路徑分別新增加入環境變數裡頭。
要看你的 python 安裝在哪裡,我的筆電預設是安裝在 Users 資料夾當中的 Local Programs,每台電腦安裝路徑並不完全相同。
![](https://dotblogsfile.blob.core.windows.net/user/claire/993378ad-14ee-49a4-8e65-139424701380/1715755429.png.png)
![](https://dotblogsfile.blob.core.windows.net/user/claire/993378ad-14ee-49a4-8e65-139424701380/1715755477.png.png)
![](https://dotblogsfile.blob.core.windows.net/user/claire/993378ad-14ee-49a4-8e65-139424701380/1706237447.png.png)
pip install
numpy-1.26.3
pandas-2.2.0
pantab-3.0.2
指定套件版本
pip install --force-reinstall numpy==1.18.5
![](https://dotblogsfile.blob.core.windows.net/user/claire/1c0154a3-a497-461e-b7ad-741141a092ae/1706239349.png.png)
numpy-1.26.3
pandas-2.2.0
pyarrow-15.0.0
pantab-3.0.2 [*HP User >> 3.0.4]
pip-autoremove-0.10.0
contourpy-1.2.0 cycler-0.12.1 fonttools-4.47.2 kiwisolver-1.4.5 matplotlib-3.8.2 packaging-23.2 pillow-10.2.0 pyparsing-3.1.1
sqlalchemy-2.0.25
tableauserverclient-0.30
psycopg2-2.9.9
pip install sqlalchemy
#pip install --exists-action=i scikit-learn
joblib-1.3.2 scikit-learn-1.4.0 scipy-1.12.0 threadpoolctl-3.2.0
pip install --force-reinstall numpy==1.18.5
pip install --force-reinstall pandas==1.18.5
pip install --force-reinstall pandas==3.0
Pyarrow will become a required dependency of pandas in the next major release of pandas (pandas 3.0)
pymongo 4.1.1
python -m pip install -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com pymongo
pandas -1.1.5
python -m pip install -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com pandas
numpy 1.19.5
python -m pip install -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com numpy
![](https://dotblogsfile.blob.core.windows.net/user/claire/993378ad-14ee-49a4-8e65-139424701380/1715755375.png.png)