pip安装时ReadTimeoutError解决办法

有一个本地服务器,网速很慢,下载老是出错,出现

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

经过google,发现用下面的内容就可以完美解决

1
pip --default-timeout=100 install gevent

文章目录