首页 > 编程语言 > 详细

python,pip国内源

时间:2018-04-21 18:18:09      阅读:172      评论:0      收藏:0      [点我收藏+]

pip国内的一些镜像

??阿里云 http://mirrors.aliyun.com/pypi/simple/ 
??中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/ 
??豆瓣(douban) http://pypi.douban.com/simple/ 
??清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/ 
??中国科学技术大学 http://pypi.mirrors.ustc.edu.cn/simple/

修改源方法:

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

 

2)配置文件: 
linux: 
修改 ~/.pip/pip.conf (没有就创建一个), 内容如下:

[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple

原文参考:
https://blog.csdn.net/chenghuikai/article/details/55258957

python,pip国内源

原文:https://www.cnblogs.com/hgSuper/p/8902448.html

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