python报错:WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None))

在下载python包时,遇到以下报错

[root@computer-48 ~]# pip3 install coloredlogs
Looking in indexes: http://172.16.50.80:8080/simple
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘NewConnectionError(’<pip._vendor.urllib3.connection.HTTPConnection object at 0x7fca6a7fc5c0>: Failed to establish a new connection: [Errno 111] Connection refused’,)’: /simple/coloredlogs/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘NewConnectionError(’<pip._vendor.urllib3.connection.HTTPConnection object at 0x7fca6a7fc8d0>: Failed to establish a new connection: [Errno 111] Connection refused’,)’: /simple/coloredlogs/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘NewConnectionError(’<pip._vendor.urllib3.connection.HTTPConnection object at 0x7fca6a7fcac8>: Failed to establish a new connection: [Errno 111] Connection refused’,)’: /simple/coloredlogs/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘NewConnectionError(’<pip._vendor.urllib3.connection.HTTPConnection object at 0x7fca6a7fccc0>: Failed to establish a new connection: [Errno 111] Connection refused’,)’: /simple/coloredlogs/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘NewConnectionError(’<pip._vendor.urllib3.connection.HTTPConnection object at 0x7fca6a7fceb8>: Failed to establish a new connection: [Errno 111] Connection refused’,)’: /simple/coloredlogs/
ERROR: Could not find a version that satisfies the requirement coloredlogs (from versions: none)
ERROR: No matching distribution found for coloredlogs

关于错误原因

目前还没有找到,这里先记录下解决方法

解决方法
pip install packageName  -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
# packageName写要安装的包名即可

参考:https://blog.csdn.net/qq_42466324/article/details/104594472

  • 9
    点赞
  • 27
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
引用 引用 certificate ... 引用中提到了SSL证书验证失败的错误,这可能是由于证书过期或不受信任导致的。同时,在引用中也提到了ReadTimeoutError的错误提示,这可能是由于连接超时导致的。 针对这个问题,有几种常见的解决方法可以尝试: 1. 更新或重新安装证书:可以尝试更新或重新安装相关的SSL证书,确保其有效并受信任。这可以通过下载最新的证书文件并将其安装到系统中来完成。 2. 检查网络连接:检查网络连接是否正常并且稳定。如果网络连接不稳定或速度较慢,可能会导致连接超时的问题。 3. 使用代理服务器:尝试使用代理服务器来连接到目标网站。有时候使用代理服务器可以解决连接问题。 4. 使用其他源或镜像:如果是在安装Python库时出现问题,可以尝试使用其他源或镜像来下载库文件。有时候源或镜像的问题可能会导致下载失败。 需要注意的是,以上解决方法可能并不适用于所有情况。具体的解决方法还需要根据具体的错误提示和环境来确定。希望以上解决方案对你有所帮助。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* *3* [WARNING:Retrying(Retry(total=4,connect=None,read=None,redirect=None,status =None))connect broken解决...](https://blog.csdn.net/weixin_43178406/article/details/129298593)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] - *2* [rpa-kot-kintai:RPA,用于在“时间之王”中输入出勤记录](https://download.csdn.net/download/weixin_42139302/18293562)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值