Some common sources of domestic
Tsinghua University: HTTPS: //pypi.tuna.tsinghua.edu.cn/ the Simple Ali cloud: HTTPS: //mirrors.aliyun.com/pypi/ the Simple University of Science and Technology of China HTTPS: //pypi.mirrors.ustc.edu. CN / the Simple watercress: HTTP: //pypi.douban.com/simple
Permanent modification pip domestic source
Adding configure ~ / .pip / pip.conf added trusted source directory under the user's directory (~, rather than the system root /), if the directory does not exist, can be created directly.
[root@localhost ~]# cd [root@localhost ~]# mkdir .pip [root@localhost ~]# cd .pip [root@localhost .pip]# vim pip.conf
pip.conf write the following
[global] index-url=http://pypi.douban.com/simple trusted-host = pypi.douban.com
Coupled with trusted-host prevent pip newspaper warning