numpy安裝
可能會提示你先升級pip python -m pip install --upgrade pip
方法1:用命令pip install numpy
直接安裝
C:\Users\siyu\AppData\Local\Programs\Python\Python35\Scripts>pip install numpy
Collecting numpy
Downloading numpy-1.12.1-cp35-none-win_amd64.whl (7.7MB)
100% |████████████████████████████████| 7.7MB 86kB/s
Installing collected packages: numpy
Successfully installed numpy-1.12.1
方法2:下載安裝包用pip安裝
可能會遇到如下報錯
C:\Users\siyu\AppData\Local\Programs\Python\Python35\Scripts>pip3 install "numpy-1.11.2"
Collecting numpy-1.11.2
Could not find a version that satisfies the requirement numpy-1.11.2 (from versions: )
No matching distribution found for numpy-1.11.2
numpy包下載地址Numerical Python
將安裝包放在Python安裝目錄的Script文件夾下,我的是
C:\Users\siyu\AppData\Local\Programs\Python\Python35\Scripts
然後在上述文件路徑下打開cmd窗口,輸入pip install "numpy-1.11.2"
聽說要注意雙引號。
方法3:直接下載.exe安裝軟件安裝
也是推薦的安裝方法之一,但是某些新版本的官網上好像沒有發佈.exe
numpy包下載地址Numerical Python
Scipy安裝
http://www.lfd.uci.edu/~gohlke/pythonlibs/
直接pip install scipy會下面的報錯,這是由於numpy相關的whl的問題,但是先pip安裝whl也沒用,可以在上述網站直接下載scipy+whl解決
C:\Users\siyu\AppData\Local\Programs\Python\Python35\Scripts>pip install scipy
Collecting scipy
Using cached scipy-0.19.0.zip
Building wheels for collected packages: scipy
Running setup.py bdist_wheel for scipy ... error
......