Pip Exchange Source
When you install some Python third-party libraries using the PIP, you often experience low speeds and timeouts that cause the installation to fail because the PIP defaults to a foreign source for downloading, and the default source to a domestic mirror Web site can be resolved. 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/
China University of Science and Technology http://pypi.mirrors.ustc.edu.cn/simple/Modify source method:
Linux: Modify ~/.pip/pip.conf (without creating one), as follows:
[Global]
Index-url = http://pypi.douban.com/simple/
Windows: Create a pip directory directly in the user directory, such as: C:\Users\xx\pip, new file Pip.ini, content same pip upgrade
python-m Pip install-u pip