Often in the use of Python need to install a variety of modules, and Pip is a very powerful module installation tools, but because the foreign official pypi often by the wall, resulting in unavailability, so we'd better be the PIP source we use to replace it, so that can solve the wall caused by the trouble of loading library.
There are many sources available online, such as watercress: http://pypi.douban.com/simple/
Tsinghua: Https://pypi.tuna.tsinghua.edu.cn/simple
Recently used more and more handy is Tsinghua University's PIP source, it is the image of the official website PyPI, every 5 minutes synchronization, the address is https://pypi.tuna.tsinghua.edu.cn/simple
Temporary use:
You can add the parameter-I https://pypi.tuna.tsinghua.edu.cn/simple when using PIP
For example: Pip install-i https://pypi.tuna.tsinghua.edu.cn/simple gevent, this will be from the Tsinghua side of the mirror to install the Gevent library.
Permanently modified, once and for all:
Under Linux, modify the ~/.pip/pip.conf (without creating one), modify Index-url to tuna, and read as follows:
[Global] Index-url = Https://pypi.tuna.tsinghua.edu.cn/simple
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
-----------------------------------------------
Pip Install Mapnik2-i https://pypi.tuna.tsinghua.edu.cn/simple
Change PIP source to domestic mirror, significantly increase download speed (reprint)