Ubuntu永久修改python镜像源


1. 进入到“~”目录,查看当前目录下有没有.pip目录

1 ls -a

2. 如果没有需要手动创建

1 mkdir .pip
2 vim pip.conf

3. 编辑pip.conf的内容,保存退出

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

 

国内所有镜像源:

清华: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/


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM