我正在努力安装Boto3库
我尝试了不同的合作来获得boto3库:
但我总是犯同样的错误
有什么想法吗
我的代码:
sla82716:/home/pa009999/scriptDirectory $ pip3 install boto
Collecting boto
Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f8fb0f74e10>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/boto/
Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f8fb0f74208>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/boto/
Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f8fb0f742b0>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/boto/
Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f8fb0f74320>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/boto/
Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f8fb0f743c8>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/boto/
Could not find a version that satisfies the requirement boto (from versions: )
No matching distribution found for boto
sla82716:/home/pa009999/scriptDirectory $ pip3 install boto3
Collecting boto3
Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f08a5642f98>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/boto3/
Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f08a5642438>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/boto3/
Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f08a5642400>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/boto3/
Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f08a56420b8>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/boto3/
Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f08a5642630>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/boto3/
Could not find a version that satisfies the requirement boto3 (from versions: )
No matching distribution found for boto3
sla82716:/home/pa009999/scriptDirectory $ pip3 install --extra-index-url https://pypi.python.org/simple boto3
Collecting boto3
Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f5456b85358>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/boto3/
Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f5456b85828>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/boto3/
Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f5456b85898>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/boto3/
Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f5456b85ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/boto3/
Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f5456b85198>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/boto3/
Could not find a version that satisfies the requirement boto3 (from versions: )
No matching distribution found for boto3
看起来您无法解析主机名。尝试添加以下行(Google名称服务器)
到
/etc/resolv.conf
文件(例如,通过使用nano /etc/resolv.conf
)。您只能添加三个名称服务器,因此如果文件中已有三个名称服务器,则可能必须删除/更改一行之后,
ping google.com
应该起作用,而且pip install boto3
也应该起作用相关问题 更多 >
编程相关推荐