pip报connection broken by ‘NewConnectionError.HTTPSConnection object 以及conda的HTTP错误

本来好好一直正常,突然要重装下环境导致各种出问题。

然后搞半天在那配.condarc文件还是不行,直接晚上刷到一个说删掉有用的。

命令如下:

1、conda config --show-sources

2、会有一个==》path《==这种打印出来,把这个.condarc删掉后,我的conda安装能用了

3、pip安装还是有问题,ERROR: Could not install packages due to an OSError: HTTPSConnectionPool(host='github.com', port=443): Max retries exceeded with url: /unlimblue/KNN_CUDA/releases/download/0.2/KNN_CUDA-0.2-py3-none-any.whl (Caused by NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f0b03b15940>: Failed to establish a new connection: [Errno -2] Name or service not known'))。一直知道开梯子会影响,我就关了,对,那种断开这种,还是出错,直到我尝试把哪个梯子软件直接退出,啊啊啊啊啊啊啊啊成功了,气死我了。

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x000001B9BA068E20>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /simple/opencv-python/ WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x000001B9BA0890A0>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /simple/opencv-python/ WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x000001B9BA0892B0>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /simple/opencv-python/ WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x000001B9BA0894C0>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /simple/opencv-python/ WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x000001B9BA0896D0>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /simple/opencv-python/ ERROR: Could not find a version that satisfies the requirement opencv-python>=4.1.2 ERROR: No matching distribution found for opencv-python>=4.1.2
最新发布
06-12

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值