Pip is a very useful download tool built into Python and can basically download all of the Python libraries.
It also has a very good feature, when you install a library, it will automatically help you install all of the library's dependent libraries. Complete one-click operation. Very convenient. However, because Pipy website is a foreign site, it is easy to be wall, causing frequent download speed very slow, often time out.
Workaround: Change the data source for the PIP. At present, the domestic more well-known have watercress, Tsinghua. is the mirror of Pipy official website.
Watercress: http://pypi.douban.com/simple/
Tsinghua: Https://pypi.tuna.tsinghua.edu.cn/simple
Install the name of the library you need to install named Pip install-i URL
Example: Pip Install-i https://pypi.tuna.tsinghua.edu.cn/simple requests
is to use the Tsinghua Mirror source, download and install the requests library. Other similar
In addition, you can permanently change the PIP data source by setting the configuration file
Under Windows, create a PIP directory directly in the user directory, such as: C:\Users\xx\pip, new file Pip.ini, the following
[Global]
Index-url = Https://pypi.tuna.tsinghua.edu.cn/simple
Python pip download Slow workaround