2014-02-06 141 views
1

我正試圖學習如何使用git存儲庫和彈性bean命令行界面部署到AWS Elastic Beanstalk。AWS Elastic Beanstalk命令行工具將無法在mac上運行

我已按照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命令行界面?

+0

您運行的是哪個版本的Python? – Guy

+0

我使用的是2.7.5版本 – goose

+0

你也應該檢查你的ruby版本,並確保你有1.8或1.9的版本來運行它(http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/command -reference-get-started.html) – Guy

回答

3

這是拾取Python 3版本的eb工具。您需要將Python 2.7版本添加到您的路徑。

+0

謝謝你,這已經整理了它。現在弄清楚如何處理它。乾杯! – goose

+2

如果你有Python 2.7和Python 3,有沒有一種方法可以指定使用哪種Python? –

相關問題