pip some mirrors in the country
Aliyun http://mirrors.aliyun.com/pypi/simple/
https://pypi.mirrors.ustc.edu.cn/simple/of China University of Science and Technology
Watercress (Douban) http://pypi.douban.com/simple/
Tsinghua University https://pypi.tuna.tsinghua.edu.cn/simple/
http://pypi.mirrors.ustc.edu.cn/simple/of China University of Science and Technology
To Modify the source method:
Temporary use:
You can specify the PIP source by adding the-I parameter at the end of the use of the PIP
Eg:pip Install Scrapy-i Https://pypi.tuna.tsinghua.edu.cn/simple
Permanent Modifications:
Linux:
Modify ~/.pip/pip.conf (without creating one), as follows:
[Global]
Index-url = Https://pypi.tuna.tsinghua.edu.cn/simple
windows:
Create a PIP directory directly in the user directory, such as: C:\Users\xx\pip, new file Pip.ini, as follows
[Global]
Index-url = Https://pypi.tuna.tsinghua.edu.cn/simple