关于pip镜像的一些总结

这几天折腾才发现并不是所有的镜像都能用,最好每一个都试一试

清华:https://pypi.tuna.tsinghua.edu.cn/simple
阿里云:http://mirrors.aliyun.com/pypi/simple/
中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/
华中理工大学:http://pypi.hustunique.com/
山东理工大学:http://pypi.sdutlinux.org/
豆瓣:http://pypi.douban.com/simple/
注意 : 新版ubuntu要求使用https源,要注意。
最好用命令行设置 : 
pip config set global.index-url http://pypi.douban.com/simple/

因为我发现我用命令行设置完的路径是 : /root/.config/pip/pip.conf  , 并不是 /root/.pip/pip.conf

[global]
index-url = http://pypi.douban.com/simple/
trusted-host = pypi.douban.com

上面是豆瓣的




 
posted @ 2020-11-12 18:01  一个小学僧  阅读(188)  评论(0编辑  收藏  举报