windows pip use of domestic sources

Here I use to do the demonstration of Tsinghua source

win + R opens the user directory% HOMEPATH%, pip created folder in this directory, create a file in the pip pip.ini directory, as follows ,

Pip folder in the new code is as follows pip.ini

[global]
timeout = 6000
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
trusted-host = pypi.tuna.tsinghua.edu.cn

There are also a number of other countries mirror

       Ali cloud  http://mirrors.aliyun.com/pypi/simple/ 
  China University of Science and Technology  https://pypi.mirrors.ustc.edu.cn/simple/ 
  watercress (douban)  http://pypi.douban.com/simple / 
  Tsinghua  https://pypi.tuna.tsinghua.edu.cn/simple/ 
  University of Science and technology of China  http://pypi.mirrors.ustc.edu.cn/simple/

 

Guess you like

Origin www.cnblogs.com/weilijie/p/10963019.html