Using pip and easy_install with Chinese repo

For some reasons, pypi.python.org is not available or has a slow download rate. We can simply using douban pypi or v2ex pypi by two ways.

edit env

Edit env will enable pip using own pypi in default. In Linux and Mac, the file is in %HOME/.pip/pip.conf. And the content is:

1
2
3
4
5
6
[global]
find-links=http://pypi.douban.com/simple
[install]
find-links=
http://pypi.douban.com/simple
http://pypi.v2ex.com/simple