Pycharm 安裝 numpy


 File菜單,Settings

 

 選擇項目 Project,點擊 Project Interpreter,點擊右側的 +

 

 在上方的文本框中輸入numpy,再在下面點擊 install packages

 

狀態欄有進度

 

可能報錯:

 

 pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out.

Try to run this command from the system terminal. Make sure that you use the correct version of 'pip' installed for your Python interpreter located at 'E:\xxx\LSTM_WATER\venv\Scripts\python.exe'.

可能原因網速太慢

使用命令安裝

特別注意:注意pip的版本

pip --default-timeout=1000 install -U 模塊名
例如
pip --default-timeout=1000 install -U matplotlib
來下載matplotlib,讓它的延遲檢測時間變長。

 

也可以指定下載網站

pip --default-timeout=100 install 庫名稱 -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com

pip --default-timeout=1000 install -U numpy  -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com

pip --default-timeout=1000 install -U matplotlib.pyplot -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
pip --default-timeout=1000 install -U matplotlib  -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
 
pip --default-timeout=1000 install -U pandas -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com

pip --default-timeout=1000 install -U sklearn -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
 

 

 

 

國內鏡像網站。

清華:https://pypi.tuna.tsinghua.edu.cn/simple 阿里雲:http://mirrors.aliyun.com/pypi/simple/

中國科技大學 https://pypi.mirrors.ustc.edu.cn/simple/ 華中科技大學:http://pypi.hustunique.com/

山東理工大學:http://pypi.sdutlinux.org/ 豆瓣:http://pypi.douban.com/simple/

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM