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

PIP安装软件报错

  • 1. 问题描述
  • 2. 解决方法
  • 参考资料

1. 问题描述

解决【ERROR: Could not install packages due to an OSError: HTTPSConnectionPool...】_第1张图片
PIP安装软件总是报错,报错提示如下:

  1. WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘NewConnectionError(’: 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(‘: 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
解决【ERROR: Could not install packages due to an OSError: HTTPSConnectionPool...】_第2张图片

参考资料

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

你可能感兴趣的:(Python,python,matplotlib,开发语言)