解决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

几秒即可
解决pip3 install numpy时ReadTimeoutError_第1张图片
PS:如果安装的其他pip库文件,将numpy换掉即可

你可能感兴趣的:(笔记,pip,python)