可以在Linux编辑~/.pip/pip.conf或者在Windows下编辑%HOME%\pip\pip.ini,内容如下:
[global]
index-url = http://pypi.douban.com/simple

相关文章: