Pip solve domestic installation is slow

1. Windows in C: \ Users \ (username) New File pip.ini

2. Edit the file pip.ini

[Global] 
# prevent a timeout, the default value is 100
timeout = 1000
# address can be selected from PS index-URL = http://pypi.douban.com/simple [the install] Trusted-Host = pypi.douban.com


can be used pip, we add parameters -i and mirror address (e.g.
http://pypi.douban.com/simple )
For example: the install PIP -i http://pypi.douban.com/simple numpy, which installs numpy library from the image watercress.
 

PS:

Tsinghua: 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

 

Guess you like

Origin www.cnblogs.com/BBuniverse/p/12058006.html