Solve ReadTimeoutError when pip3 install numpy

pip install numpy

pip3 install numpy

It takes a long time and the following error occurs

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

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

Solution:

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

A few seconds to
Insert picture description here
PS: If you install other pip library files, just replace numpy

Guess you like

Origin blog.csdn.net/weixin_41631106/article/details/104295563