Python uses the command line PIP install to install the library network speed slow solution

Time:2021-7-7

To install the third party Library:
Python uses the command line PIP install to install the library network speed slow solution

Recently, I found that the installation speed of Jieba library is very slow, because the default source of PIP is abroad, PIP install some_ Packages are very slow and often times out, leading to installation failure; So replace PIP with domestic image, you can download and install it quickly.

Temporary use of domestic image:
pip install some_package --index https://pypi.mirrors.ustc.edu.cn/simple/
Python uses the command line PIP install to install the library network speed slow solution
You can download it quickly.

Several common domestic image collections:
Alicloudhttp://mirrors.aliyun.com/pypi/simple/
University of science and technology of Chinahttps://pypi.mirrors.ustc.edu.cn/simple/
Doubanhttp://pypi.douban.com/simple/
Tsinghua Universityhttps://pypi.tuna.tsinghua.edu.cn/simple/
University of science and technology of Chinahttp://pypi.mirrors.ustc.edu.cn/simple/