更改python pip 镜像源
修改pip 包里的index.py(**\Lib\site-packages\pip\_internal\models\index.py):
源代码:
PyPI = PackageIndex("https://pypi.org/", file_storage_domain="files.pythonhosted.org")
修改为:
PyPI = PackageIndex("https://pypi.douban.com/", file_storage_domain="files.pythonhosted.org")#豆瓣源
其他:https:
//pypi
.tuna.tsinghua.edu.cn
/simple(清华镜像源);
https://mirror.baidu.com/pypi/simple;