可供选择的下载源:
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
-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
原文地址:https://blog.csdn.net/qq_46037444/article/details/125985680
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。
如若转载,请注明出处:http://www.7code.cn/show_33062.html
如若内容造成侵权/违法违规/事实不符,请联系代码007邮箱:suwngjj01@126.com进行投诉反馈,一经查实,立即删除!
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。