【问题标题】:AWS Elastic Beanstalk Command Line Tool won't run on macAWS Elastic Beanstalk 命令行工具不会在 mac 上运行
【发布时间】:2014-03-04 00:14:19
【问题描述】:

我正在尝试学习如何使用 git 存储库和弹性 bean 命令行界面部署到 AWS Elastic Beanstalk。

我已经按照instructions 进行了设置。当我打电话时: eb --version

按照here的指令,它会抛出以下错误:

Traceback (most recent call last):
  File "/Users/deepthought/Cloud Drive/eb-cli/eb/macosx/python3/eb", line 17, in <module>
from scli import core
File "/Users/deepthought/Cloud Drive/eb-cli/eb/macosx/python3/scli/core.py", line 98
format(output_file), file=sys.stderr)
                         ^
SyntaxError: invalid syntax

我以前从未使用过 Python,也不明白我在看什么。

如何修复此错误并运行 Elastic Beanstalk 命令行界面?

【问题讨论】:

标签: python amazon-web-services amazon-elastic-beanstalk


【解决方案1】:

它采用了 Python 3 版本的 eb 工具。您需要将 Python 2.7 版本添加到您的路径中。

【讨论】:

  • 谢谢,已经整理好了。现在要弄清楚如何处理它。干杯!
  • 如果您同时拥有 Python 2.7 和 3,是否可以指定使用哪个 Python?
猜你喜欢
  • 2018-05-23
  • 2019-04-23
  • 1970-01-01
  • 1970-01-01
  • 2015-04-10
  • 2019-03-14
  • 2014-12-26
  • 2021-04-20
  • 2017-08-01
相关资源
最近更新 更多