Pycharm 安装 numpy
  TnD0WQEygW8e 2023年11月05日 61 0

 File菜单,Settings

Pycharm 安装 numpy_Python

 

 选择项目 Project,点击 Project Interpreter,点击右侧的 +

Pycharm 安装 numpy_linux_02

 

 在上方的文本框中输入numpy,再在下面点击 install packages

Pycharm 安装 numpy_Python_03

 

状态栏有进度

Pycharm 安装 numpy_linux_04

 

可能报错:

Pycharm 安装 numpy_Python_05

 

 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/

 



【版权声明】本文内容来自摩杜云社区用户原创、第三方投稿、转载,内容版权归原作者所有。本网站的目的在于传递更多信息,不拥有版权,亦不承担相应法律责任。如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱: cloudbbs@moduyun.com

  1. 分享:
最后一次编辑于 2023年11月08日 0

暂无评论

推荐阅读
  2Fnpj8K6xSCR   2024年05月17日   108   0   0 Python
  xKQN3Agd2ZMK   2024年05月17日   75   0   0 Python
  Ugrw6b9GgRUv   2024年05月17日   43   0   0 Python
TnD0WQEygW8e