Foreign-source download is too slow pip, pip modified to domestic sources

temporary use: 

-I can be followed by the parameter specifies the source pip pip in the use of 
EG: -i pip the install Scrapy  https://pypi.tuna.tsinghua.edu.cn/simple

Permanent modification: 
Linux: 
modified ~ / .pip / pip.conf (is not created and opened with a vim), as follows:

[, Ltd. Free Join]
index-url = HTTP: // //pypi.douban.com/simple/ This is the source address of the
trusted-host = pypi.douban.com // trust this source, otherwise there will be a variety of errors or prompts to install the required trust

Some pip domestic 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/znh8/p/11668029.html