解决【ERROR: Could not install packages due to an OSError: HTTPSConnectionPool…】

PIP安装软件报错

1. 问题描述


PIP安装软件总是报错,报错提示如下:

  1. 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 0x000001EBE06BB4F0>: Failed to establish a new connection: [Errno 11002] getaddrinfo failed’)’: /packages/59/ea/1c00d9278c51d5f03276ac3f08773a13d93cbf2d722386ae8da083866697/matplotlib-3.4.3-cp39-cp39-win_amd64.whl

  2. ERROR: Could not install packages due to an OSError: HTTPSConnectionPool(host=‘files.pythonhosted.org’, port=443): Max retries exceeded with url: /packages/59/ea/1c00d9278c51d5f03276ac3f08773a13d93cbf2d722386ae8da083866697/matplotlib-3.4.3-cp39-cp39-win_amd64.whl (Caused by NewConnectionError(‘<pip._vendor.urllib3.connection.HTTPSConnection object at 0x000001EBE06BBEB0>: Failed to establish a new connection: [Errno 11002] getaddrinfo failed’))

2. 解决方法

安装matplotlib软件3.4.3版本: pip install matplotlib==3.4.3 -i http://pypi.douban.com/simple –trusted-host pypi.douban.com

参考资料

  1. PIP安装软件报错PIP安装软件报错:“ERROR: Could not install packages due to an EnvironmentError: HTTPSConnectionPool(host=‘files.pythonhosted.org’, port=443)”

文章出处登录后可见!

已经登录?立即刷新

共计人评分,平均

到目前为止还没有投票!成为第一位评论此文章。

(0)
扎眼的阳光的头像扎眼的阳光普通用户
上一篇 2023年9月8日
下一篇 2023年9月8日

相关推荐