linux pip.conf如果不存在则新建
~/.pip/pip.conf
pip.conf
[global]
trusted-host = pypi.douban.com
index-url = http://pypi.douban.com/simple
Windows pip.ini如果不存在则新建
C:\Users\%username%\pip\pip.ini
pip.ini
[global]
index-url = http://mirrors.aliyun.com/pypi/simple/
[install]
trusted-host=mirrors.aliyun.com
几个常用的源