C:Usersmzhan017>pip install oslo_config
Defaulting to user installation because normal site–packages is not writeable
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 0x0000015E7638EA30>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed’)’: /simple/oslo–config/
这个错误的意思是当urllib3想要建立一个https的connection的时候,失败了,原因是获取IP地址失败。当机器没有网络(本机没有配置IP)的时候会出现这个错误。导致dns查找要访问的host的IP地址失败。
https://learn.microsoft.com/en-us/windows/win32/api/ws2tcpip/nf–ws2tcpip–getaddrinfo
The getaddrinfo function provides protocol-independent translation from an ANSI host name to an address.
原文地址:https://blog.csdn.net/qq_36428903/article/details/130551037
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。
如若转载,请注明出处:http://www.7code.cn/show_34784.html
如若内容造成侵权/违法违规/事实不符,请联系代码007邮箱:suwngjj01@126.com进行投诉反馈,一经查实,立即删除!