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

Mac上python 在终端使用pip3安装包报ConnectTimeoutError错误

时间:2020-02-19 19:04:57      阅读:81      评论:0      收藏:0      [点我收藏+]

标签:阿里   host   超时   hellip   安装   下载地址   连接超时   mirror   blog   

报错:
Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken…
翻译:对于该包的下载地址连接超时,默认的pip源速度太慢了
解决方法:使用国内的镜像服务,可以手动指定源
国内镜像服务源:
阿里云 http://mirrors.aliyun.com/pypi/simple/
中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/
豆瓣 http://pypi.douban.com/simple/
清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/
中国科学技术大学 http://pypi.mirrors.ustc.edu.cn/simple/
用法:pip3 install web.py -i http://pypi.douban.com/simple --trusted-host pypi.douban.com

参考博客:
https://blog.csdn.net/qq_25964837/article/details/80295041
https://www.jianshu.com/p/3ff34df37fce


————————————————
版权声明:本文为CSDN博主「Richard-Tang」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/thj19980720/article/details/81349001

Mac上python 在终端使用pip3安装包报ConnectTimeoutError错误

标签:阿里   host   超时   hellip   安装   下载地址   连接超时   mirror   blog   

原文地址:https://www.cnblogs.com/mensiler/p/12332450.html

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