1. 问题描述
PIP安装软件总是报错,报错提示如下:
-
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
-
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’))文章来源:https://www.toymoban.com/news/detail-732760.html
2. 解决方法
安装matplotlib软件3.4.3版本: pip install matplotlib==3.4.3 -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
文章来源地址https://www.toymoban.com/news/detail-732760.html
参考资料
- PIP安装软件报错PIP安装软件报错:“ERROR: Could not install packages due to an EnvironmentError: HTTPSConnectionPool(host=‘files.pythonhosted.org’, port=443)”
到了这里,关于解决【ERROR: Could not install packages due to an OSError: HTTPSConnectionPool...】的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!