1. 問題描述
PIP安裝軟件總是報(bào)錯(cuò),報(bào)錯(cuò)提示如下:
-
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’))文章來源:http://www.zghlxwxcb.cn/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文章來源地址http://www.zghlxwxcb.cn/news/detail-732760.html
參考資料
- PIP安裝軟件報(bào)錯(cuò)PIP安裝軟件報(bào)錯(cuò):“ERROR: Could not install packages due to an EnvironmentError: HTTPSConnectionPool(host=‘files.pythonhosted.org’, port=443)”
到了這里,關(guān)于解決【ERROR: Could not install packages due to an OSError: HTTPSConnectionPool...】的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!