天天看點

python安裝numpy與scipy

安裝python3.0以上版本會比較簡單

本人安裝最新版3.8

下載下傳python3.8

python官網:https://www.python.org/

不清楚下載下傳步驟的可以參考這篇文章

https://blog.csdn.net/qq_35492650/article/details/86692362

安裝python3.8

勾選Add Python3.8 to PATH。這樣直接配置好了環境變量,不像python2還得配置,如果忘記勾選,可以自己配置環境變量。

直接選擇install Now

python安裝numpy與scipy

這樣就安裝完成了!

然後:cmd下

輸入:pip install numpy

python安裝numpy與scipy

可以看到numpy現在的位置。安裝成功。

同樣安裝scipy

python安裝numpy與scipy

出現問題。

發現scipy在winos下不能直接安裝。

https://www.lfd.uci.edu/~gohlke/pythonlibs/#scipy

找到自己電腦位數與python版本的檔案

python安裝numpy與scipy

py3.8和64位。選最後一個

放到scripts中

python安裝numpy與scipy

再pip install scipy-1.3.1-cp38-cp38-win_amd64.whl

python安裝numpy與scipy

沒有找到檔案。

很簡單。

進入檔案的目錄再pip即可。

python安裝numpy與scipy

這樣就完成了。

以上是3.8版本的。之前有試過2.7版本的配置。

numpy以及scipy都要用以上scipy的方法才可以。

先安裝numpy哦~