栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Python

pip更换下载源

Python 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

pip更换下载源

可供选择的下载源:

清华

https://pypi.tuna.tsinghua.edu.cn/simple/

中科大

https://pypi.mirrors.ustc.edu.cn/simple/

阿里云

https://mirrors.aliyun.com/pypi/simple/

豆瓣

http://pypi.douban.com/simple/
下面以清华源为例,pip下载修改为清华源:

执行下面代码:

pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple

会输出:

Writing to C:UsersduanyingAppDataRoamingpippip.ini

此时就成功了

临时修改下载源:
pip install xxx -i https://pypi.tuna.tsinghua.edu.cn/simple

其中xxx为你要下载的包,
只需要在后面加上

-i https://pypi.tuna.tsinghua.edu.cn/simple

就行了

参考:

  • [1] https://blog.csdn.net/Carl_Shawshank/article/details/123449481?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522165876334116781667813627%2522%252C%2522scm%2522%253A%252220140713.130102334.pc%255Fall.%2522%257D&request_id=165876334116781667813627&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2allfirst_rank_ecpm_v1~pc_rank_34-1-123449481-null-null.142v34pc_rank_34,185v2control&utm_term=pip%E6%8D%A2%E6%B8%85%E5%8D%8E%E4%B8%8B%E8%BD%BD%E6%BA%90&spm=1018.2226.3001.4187
  • [2] https://blog.csdn.net/qq_39330829/article/details/109157173?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522165876379516782248561715%2522%252C%2522scm%2522%253A%252220140713.130102334…%2522%257D&request_id=165876379516782248561715&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2allsobaiduend~default-1-109157173-null-null.142v34pc_rank_34,185v2control&utm_term=pip%E6%8D%A2%E4%B8%8B%E8%BD%BD%E6%BA%90&spm=1018.2226.3001.4187
转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/1025675.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号