vim ~/.pip/pip.conf
[global]
index-url = https://pypi.doubanio.com/simple/
[install]
trusted-host=pypi.doubanio.com
编辑保存,重来一遍
记得域名不能配置在public目录下
vim ~/.pip/pip.conf
[global]
index-url = https://pypi.doubanio.com/simple/
[install]
trusted-host=pypi.doubanio.com
编辑保存,重来一遍
记得域名不能配置在public目录下
转载于:https://www.cnblogs.com/lobtao/articles/7498974.html