C:Usersmzhan017>pip install oslo_config
Defaulting to user installation because normal sitepackages 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/osloconfig/

这个错误的意思是当urllib3想要建立一个httpsconnection时候失败了,原因获取IP地址失败。当机器没有网络本机没有配置IP)的时候出现这个错误。导致dns查找要访问host的IP地址失败
https://learn.microsoft.com/en-us/windows/win32/api/ws2tcpip/nfws2tcpipgetaddrinfo

The getaddrinfo function provides protocol-independent translation from an ANSI host name to an address.

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注