pip HTTPSConnectionPool(host=‘files.pythonhosted.org‘, port=443)错误

PS D:\工作报告\Safetek\DNS系统\脚本程序\GeoIP> pip install geoip2
Collecting geoip2
  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 0x000002A61A83B820>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /packages/74/b6/21cc1cae1fba6c2256550f06a075427d7e01e55b16990349dc5ebb126d5a/geoip2-4.5.0-py2.py3-none-any.whl
  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 0x000002A61A83B970>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /packages/74/b6/21cc1cae1fba6c2256550f06a075427d7e01e55b16990349dc5ebb126d5a/geoip2-4.5.0-py2.py3-none-any.whl
  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 0x000002A61A83BB20>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /packages/74/b6/21cc1cae1fba6c2256550f06a075427d7e01e55b16990349dc5ebb126d5a/geoip2-4.5.0-py2.py3-none-any.whl
  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 0x000002A61A83BDF0>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /packages/74/b6/21cc1cae1fba6c2256550f06a075427d7e01e55b16990349dc5ebb126d5a/geoip2-4.5.0-py2.py3-none-any.whl
  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 0x000002A61A83BF40>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /packages/74/b6/21cc1cae1fba6c2256550f06a075427d7e01e55b16990349dc5ebb126d5a/geoip2-4.5.0-py2.py3-none-any.whl
ERROR: Could not install packages due to an EnvironmentError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Max retries exceeded with url: /packages/74/b6/21cc1cae1fba6c2256550f06a075427d7e01e55b16990349dc5ebb126d5a/geoip2-4.5.0-py2.py3-none-any.whl (Caused by NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x000002A61A814A30>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed'))

解决:

设置超时时间延长后重新下载。

pip3 --default-timeout=100 install opencv-python==3.4.0.14

 更换安装源。

  • 1
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值