pip domestic source collection

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/


 

Modify the source method:

Temporary use: 
it can be used when -i pip is followed by the parameter specifies the source pip 
example: the install pip Scrapy -i  https://pypi.tuna.tsinghua.edu.cn/simple

Permanent modification: 
Linux: 
Modify ~ / .pip / pip.conf (not create one), reads as follows:

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

windows: 
Creating a pip directory directly in the user directory, such as: C: \ Users \ xx \ pip, the new file pip.ini, reads as follows

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

To install a specific version, after the package name == tensorflow plus a version number such as:

1
conda install tensorflow = = 1.9 . 0

 

ps: interject, when you find some other source of conda, pip sources, domestic sources are not mirror package, you can pypi.org download the package you need, and then installed locally:

pip install local path name. compression format

Guess you like

Origin www.cnblogs.com/arno-liu/p/12105329.html