Numpy安装

问题:如果使用numpy工具,就必须下载对应的包

解决:在pycharm进行包下载

使用pycharm中自带的源链接下载的慢,容易下载失败,如下图:
image.png
原因:连接超时,解决方案有两种

方法1、可以使用其他的源然后用命令进行下载:

pip install requests -i http://pypi.douban.com/simple --trusted-host pypi.douban.com(通过豆瓣)

方法2、在pycharm中用CTRL + alt + s 打开 settingsimage.png

添加下载源镜像

豆瓣镜像链接:https://pypi.douban.com/simple/
清华镜像链接:https://mirrors.aliyun.com/pypi/simple/
阿里云:http://mirrors.aliyun.com/pypi/simple/
中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/
华中理工大学:http://pypi.hustunique.com/
山东理工大学:http://pypi.sdutlinux.org/
image.png

原文地址:https://www.cnblogs.com/myfaith-feng/p/12694851.html