首页 > 编程语言 > 详细

python - pip 国内的一些镜像

时间:2020-03-23 22:53:45      阅读:82      评论:0      收藏:0      [点我收藏+]

中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/

清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/

中国科学技术大学 http://pypi.mirrors.ustc.edu.cn/simple/

修改源方法:
临时使用:
可以在使用pip的时候在后面加上-i参数,指定pip源
eg:
pip install wxPython -i https://pypi.tuna.tsinghua.edu.cn/simple/


永久修改:
linux:
修改 ~/.pip/pip.conf (没有就创建一个), 内容如下:
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple

windows:
直接在user目录中创建一个pip目录,如:C:\Users\xx\pip,新建文件pip.ini,内容如下
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple

python - pip 国内的一些镜像

原文:https://www.cnblogs.com/uncle-fang/p/12555643.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!