PIP安装软件报错
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’))
2. 解决方法
安装matplotlib软件3.4.3版本: pip install matplotlib==3.4.3 -i http://pypi.douban.com/simple –trusted-host pypi.douban.com
参考资料
文章出处登录后可见!