我正在尝试将 Amazon 的 awscli 安装到我的 Mac 上,但遇到了一些无法诊断的错误。到目前为止,我已按照 this link 中的所有步骤进行操作。 ,但是当我实际尝试安装 awscli 时,它给出了以下错误:
Could not find a version that satisfies the requirement awscli (from versions: )
No matching distribution found for awscli
所发生事件的完整轨迹是
bash-3.2$ ./Library/Python/2.7/bin/pip install awscli --upgrade --user
Collecting awscli
Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x10b0d4390>: Failed to establish a new connection: [Errno 8] nodename nor servname provided, or not known',)': /simple/awscli/
Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x10b0d4890>: Failed to establish a new connection: [Errno 8] nodename nor servname provided, or not known',)': /simple/awscli/
Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x10b0d4d10>: Failed to establish a new connection: [Errno 8] nodename nor servname provided, or not known',)': /simple/awscli/
Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x10b0d4d50>: Failed to establish a new connection: [Errno 8] nodename nor servname provided, or not known',)': /simple/awscli/
Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x10b0d4690>: Failed to establish a new connection: [Errno 8] nodename nor servname provided, or not known',)': /simple/awscli/
Could not find a version that satisfies the requirement awscli (from versions: )
No matching distribution found for awscli
我几乎 100% 确定我尝试安装的资源存在连接错误,但由于该命令直接来自 Amazon,因此它应该不会过时?另外,我运行的是 pip 版本 9.0.1,所以不应该有过时的问题。
最佳答案
这对我有用。希望这对遇到此问题的其他人有所帮助。
brew install python3
pip3 install awscli --upgrade --user
关于python - 使用 pip 安装 awscli 时出错 (macOS),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48081182/