报错内容:pip install openpyxl
ERROR: Could not install packages due to an OSError: HTTPSConnectionPool(host=‘files.pythonhosted.org’, port=443): Max retries exceeded with url: /packages/7b/60/9afac4fd6feee0ac09339d
e4101ee452ea643d26e9ce44c7708a0023f503/openpyxl-3.0.10-py2.py3-none-any.whl (Caused by NewConnectionError(‘<pip._vendor.urllib3.connection.HTTPSConnection object at 0x000001C20C3AE220>
: Failed to establish a new connection: [Errno 11001] getaddrinfo failed’))
解决:
运行pip3就可以,真的很奇怪。。。。

在尝试使用pip安装openpyxl时遇到了一个OSError,具体表现为Maxretriesexceededwithurl,原因是getaddrinfofailed。然而通过切换到pip3进行安装,问题得到了解决。这可能是因为pip和pip3的配置或网络环境差异导致的。
11万+

被折叠的 条评论
为什么被折叠?



