解决pip3 install numpy时ReadTimeoutError

pip安装numpy

pip3 install numpy

耗时很长,出现如下错误

Defaulting to user installation because normal site-packages is not writeable

ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out.

解决办法:

pip install numpy -i https://pypi.douban.com/simple

几秒即可
在这里插入图片描述
PS:如果安装的其他pip库文件,将numpy换掉即可

猜你喜欢

转载自blog.csdn.net/weixin_41631106/article/details/104295563