python-3.x - aws (pip) 返回无效语法

标签 python-3.x amazon-web-services

我正在尝试在 pip 中安装 Amazon Web Services

pip3 install awscli

但是在这种情况下,当我尝试运行 aws 或 aws configure 时出现错误:
Traceback (most recent call last):
  File "/usr/local/bin/aws", line 7, in <module>
    from aws.main import main
  File "/usr/local/lib/python3.6/site-packages/aws/main.py", line 23
    print '%(name)s: %(endpoint)s' % {

任何线索?

最佳答案

我在 python 3.6 上遇到了同样的问题。

这实际上是一个不同的包,名称混淆地命名为“aws”,它抛出错误:https://github.com/eofs/aws

确保您运行

pip install awscli

不是 pip 安装 aws

要找出您正在调用的“aws”包,请运行:
 which aws

关于python-3.x - aws (pip) 返回无效语法,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46256025/

相关文章:

ios - 了解 AWS Cognito 在 iOS 应用程序中的使用

amazon-web-services - 如何让 Terraform 等待 cloudinit 完成?

amazon-web-services - VPC 设置是否将 Elastic Beanstalk URL 的访问限制为仅 API 网关?

node.js - 如何在更改 WriteUnits 的吞吐量并等待它完成时检查 DynamoDB 状态?

python - 如何将字典 kwargs 输入到 matplotlib 图例例程中?

python - 如何读取文本文件并转换为字典?

python - 创建另一个模型时创建组

php - 亚马逊 Linux PHP Mbstring

python - 寻找类似于 DataFrame.nafill() 的 pandas 函数

python - 属性错误: 'tuple' object has no attribute 'replace' For brackets