Installing third-party libraries with Easy_install and Pip is convenient
They are actually downloaded from the official Python source Pypi.python.org/pypi to the local, then unpacked and installed.
But for some reason, access to the official PyPI is unstable, slow or even inaccessible.
As with Ubuntu's apt and CentOS's yum, there are various image sources like PyPI.
The source of the highly recommended watercress in the country
http://pypi.douban.com/simple/
Note that there are/simple directories to follow.
Using the image source is simple, specifying it with-I is OK:
Easy_install-i http://pypi.douban.com/simple/gevent
Pip Install-i http://pypi.douban.com/simple/gevent
If it feels too troublesome, it can be formulated as default:
Under Linux, modify the ~/.pip/pip.conf, if not this file is created.
Under Windows, modify%homepath%\pip\pip.ini.
The contents are:
[Global]
Index-url = Http://pypi.douban.com/simple
This source is used by default when you use Pip to install.
Python accelerates the installation of third-party libraries online using the PyPI mirror source