pip installation is too slow or pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pyth problem occurs

The pip installation package command is as follows:

pip install  包名 -i  镜像源

For example:

pip install  matplotlib -i  https://pypi.mirrors.ustc.edu.cn/simple/

If the package to be installed is placed in requirements.txt, the command is as follows:

pip install  -r requirements.txt -i  https://pypi.mirrors.ustc.edu.cn/simple/

Switch mirror source:

Douban: http://pypi.douban.com/simple/Tsinghua
University: https://pypi.tuna.tsinghua.edu.cn/simple
Aliyun: http://mirrors.aliyun.com/pypi/simple/Shandong
University of Technology University: http://pypi.sdutlinux.org/
University of Science and Technology of China https://pypi.mirrors.ustc.edu.cn/simple/
Huazhong University of Science and Technology: http://pypi.hustunique.com/

Guess you like

Origin blog.csdn.net/M_TDM/article/details/130230036