码迷,mamicode.com
首页 > 编程语言 > 详细

python,pip国内源

时间:2018-04-21 19:28:17      阅读:182      评论:0      收藏:0      [点我收藏+]

标签:pre   配置文件   中国   class   ber   href   detail   参考   技术   

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国内源

标签:pre   配置文件   中国   class   ber   href   detail   参考   技术   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!