找到python安装目录下的:\Lib\site-packages\pip\models\index.py文件,将PYPI的值改为你所需要的源即可,例如改为豆瓣的源 #PyPI = Index('https://pypi.python.org/') PyPI = Index('https://pypi.douban.com/')