我想学习如何使用Git仓库和弹性豆类命令行界面来部署到AWS弹性魔豆。
I'm trying to learn how to deploy to AWS Elastic Beanstalk using a git repository and the elastic beans command line interface.
我已经通过设置按指令执行。当我打电话: EB --version
I've run through setup as per instructions. When I call: eb --version
根据指令此处,它引发以下错误:
As per instructions here, it throws the following error:
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之前,不明白我在寻找什么。
I've never used Python before and don't understand what I'm looking at.
如何解决这个错误,并运行弹性魔豆命令行界面?
How do I fix this error and run the Elastic Beanstalk command line interface?
它捡了Python 3版的EB
工具。您需要Python的2.7版本添加到您的路径。
It's picking up the Python 3 version of the eb
tool. You need to add the Python 2.7 version to your path.