pip domestic installation package using mirroring

1.pipy domestic mirrored there are:

http://pypi.douban.com/ watercress 

http://pypi.hustunique.com/ Huazhong University of Science 

http://pypi.sdutlinux.org/ Shandong University of Technology 

http://pypi.mirrors.ustc.edu.cn / University of Science and technology of China

2. For this way pip-line installation, it is very convenient, but the network is unstable, then it terribly. Mirroring relatively better domestic use,

If you want to manually specify the source, the source may be specified with -i PIP later, such as to install a source watercress web.py frame:

pip3.6 -y install web.py -i http://pypi.douban.com/simple

Note that the back should have / simple directory! ! !

3. To be formulated into default, then you need to create or modify configuration files (linux files in ~ / .pip / pip.conf, windows in% HOMEPATH% \ pip \ pip.ini), modify the content as follows:

code:

[global]

index-url = http://pypi.douban.com/simple

Thus during use pip to install, it will call the default image.

Guess you like

Origin www.cnblogs.com/yoyo1216/p/10953624.html