Python uses pip to install the module readTimeoutError: HTTPSConnectionPool

When using pip to install the third library, sometimes an error is reported:

pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out.

At this time, it can be replaced with domestic sources:

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple module_name

or

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

If the first installation fails, try the second one.

Guess you like

Origin blog.csdn.net/Thanours/article/details/101424469