Solve ubuntu16.04 install third-party packages by pip command is very slow

ubuntu16.04 installation by pip command python library sometimes very slow, because the pip default software source in a foreign country, so the download speed will be very slow, solving many ways, the following comparison of two popular speaker:
Method 1:
by when mounted pip python library designated domestic mirror source can be used, the following command:
pip the install package names  -i  http://mirrors.aliyun.com/pypi/simple method 2 global open a terminal, sequentially executes the following commands: ~ mkdir / .pip Vim ~ / .pip / pip.conf press eNTER to enter a new blank document, the following is added in the file:   [Global]   index-URL = http://mirrors.aliyun.com/pypi/simple   [install]   Trusted-Host = mirrors.aliyun.com final save out, which is a mirror image of the country Ali cloud source as the default download source pip of meaning, and is global common source of domestic: Qinghua: https: //pypi.tuna.tsinghua.edu.cn/simple Ali cloud: http: //mirrors.aliyun.com/pypi/simple/ China University of Science and Technology https://pypi.mirrors.ustc.edu.cn/simple/



















Huazhong University of Science: http: //pypi.hustunique.com/
Shandong University of Technology: http: //pypi.sdutlinux.org/
watercress: http: //pypi.douban.com/simple/
more technical information may concern: gzitcast

Guess you like

Origin www.cnblogs.com/heimaguangzhou/p/11542172.html