PIP安装软件报错
1. 问题描述
PIP安装软件总是报错,报错提示如下:
-
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 -
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
参考资料
来源地址:https://blog.csdn.net/qq_49323609/article/details/129967236