Disclaimer: This article is the original article CSDN bloggers "VincentQu1998", and follow CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
Original link: https: //blog.csdn.net/weixin_41712059/article/details/86704492
1.pip some 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/
2. Temporary Review:
can be followed by the -i parameter specifies pip pip the source when using
eg: pip install scrapy -i https://pypi.tuna.tsinghua.edu.cn/simple
3. Permanent modification:
Linux:
modified ~ / .pip / pip.conf (not create one), 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
————————————————