python - 使用 pip 安装 awscli 时出错 (macOS)

标签 python amazon-web-services

我正在尝试将 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/

相关文章:

python - 在 Markdown 中,有没有办法加粗多个标点符号(不是单词/数字)?

python - 如何在版本高于 v7.3 的 MATLAB 中保存大 mat 文件并在 Python 中读取

amazon-web-services - 您可以使用 Redis 运行整个服务吗?

python - 使用记录超过10000条的python从Elasticsearch结果写入CSV吗?

python - 删除停用词 Python

python - 在 Zope 接口(interface)中声明类方法

amazon-web-services - 为什么通过 IAM 策略将 `ssm:sendCommand` 限制为特定文档显示拒绝访问?

c - 从 C 代码调用 DynamoDB 低级 API 时出错

javascript - Froala 编辑器 AWS S3 CORS 问题

amazon-web-services - 使用 AWS AppSync 进行输入验证