pip install error 在Python package下载中遇到ReadTimeoutError: HTTPSConnectionPool

我们常用pip来更新Python的package,因为你懂的,很多人都会遇到:

[plain] view plain copy
  1. ReadTimeoutError: HTTPSConnectionPool(host='pypi.python.org', port=443): Read timed out.    

尤其是直接装Anaconda的小伙伴,更是被搞得脑阔疼。

我本来想安装virtualenv

[python] view plain copy
  1. pip install virtualenv  

燃鹅[摊手]:

pip install error 在Python package下载中遇到ReadTimeoutError: HTTPSConnectionPool

幸好有:

pip install error 在Python package下载中遇到ReadTimeoutError: HTTPSConnectionPool


传送门:https://mirrors.tuna.tsinghua.edu.cn/

(已经安利了无数次)

把源换为清华的镜像站

[python] view plain copy
  1. pip install --index https://mirrors.ustc.edu.cn/pypi/web/simple/ virtualenv   
pip install error 在Python package下载中遇到ReadTimeoutError: HTTPSConnectionPool