python配置豆瓣源

找到python安装目录下的:Libsite-packagespipmodelsindex.py文件,将PYPI的值改为你所需要的源即可,例如改为豆瓣的源。

PyPI = Index('https://pypi.douban.com/')

原文地址:https://www.cnblogs.com/lemonlemontree/p/7285495.html