无法安装AWS Elastic Beanstalk命令行工具包

时间:2014-01-12 22:58:09

标签: amazon-web-services amazon-ec2

我在安装AWS Elastic Beanstalk命令行工具时遇到问题,我不明白为什么。我从AWS下载了该软件包,并仔细按照说明进行操作。以下是安装说明:

== Installation

Once you have downloaded the CLI package:

1) Unzip this archive to a location of your choosing.

Eb is located in the "eb" directory. The complete CLI reference 
for more advanced scenarios can be found in the "api" directory.

To add eb files to your path:

Linux/Mac OS X (Bash shell):

export PATH=$PATH:<path to eb>

Windows:

set PATH=<path to eb>;%PATH%

我正在使用Mac OS X,因此我使用了导出PATH = $ PATH:。对于eb的路径,我刚刚将文件复制到终端中,结果为export PATH=$PATH:/Users/lydia/Downloads/ElasticBeanstalk/eb/macosx/python2.7/eb。我不确定我缺少什么,如果不首先下载eb命令行,我就无法部署。

3 个答案:

答案 0 :(得分:2)

删除末尾的eb,这只是

  

/Users/lydia/Downloads/ElasticBeanstalk/eb/macosx/python2.7 /

这对我有用,虽然我只能将它导出工作,如果我将CLI导出到我正在处理的特定网站文件夹中,请在此处查看我的问题https://askubuntu.com/questions/428417/aws-elastic-beanstalk-command-line-tool-setup

答案 1 :(得分:1)

对我有用的修复(如果你使用brew安装了python)是通过

删除python
brew uninstall --force python

然后从https://www.python.org/downloads/再次安装。

然后按照AWS的说明进行操作。

答案 2 :(得分:0)

您只需向$PATH添加目录。 ~/Downloads/ElasticBeanstalk/eb/macosx/python2.7/eb是一个目录吗?或者它是实际的命令?