AWS - 在OS X上安装EB CLI

时间:2016-04-02 08:55:20

标签: amazon-web-services

我想使用brew命令安装EB CLI。

所以我运行这个命令:

$ brew install awsebcli

似乎一切都很好,但最后我得到了一个错误

MacBook-Pro-de-paquirrin:Home paquirrin$ brew install awsebcli
==> Downloading https://pypi.python.org/packages/source/a/awsebcli/awsebcli-3.4.4.tar.gz
######################################################################## 100,0%
==> Downloading https://pypi.python.org/packages/source/P/PyYAML/PyYAML-3.11.tar.gz
######################################################################## 100,0%
==> python -c import setuptools... --no-user-cfg install --prefix=/usr/local/Cellar/aws-elasticbeanstalk/3.4.4/libexec --single-version-externally-managed --record=instal
==> Downloading https://pypi.python.org/packages/source/c/cement/cement-2.4.0.tar.gz
######################################################################## 100,0%
==> python -c import setuptools... --no-user-cfg install --prefix=/usr/local/Cellar/aws-elasticbeanstalk/3.4.4/libexec --single-version-externally-managed --record=instal
==> Downloading https://pypi.python.org/packages/source/b/backports.ssl_match_hostname/backports.ssl_match_hostname-3.4.0.2.tar.gz
######################################################################## 100,0%
==> python -c import setuptools... --no-user-cfg install --prefix=/usr/local/Cellar/aws-elasticbeanstalk/3.4.4/libexec --single-version-externally-managed --record=instal
==> Downloading https://pypi.python.org/packages/source/p/pathspec/pathspec-0.3.3.tar.gz
######################################################################## 100,0%
==> python -c import setuptools... --no-user-cfg install --prefix=/usr/local/Cellar/aws-elasticbeanstalk/3.4.4/libexec --single-version-externally-managed --record=installed.tx
==> Downloading https://pypi.python.org/packages/source/d/docopt/docopt-0.6.2.tar.gz
######################################################################## 100,0%
==> python -c import setuptools... --no-user-cfg install --prefix=/usr/local/Cellar/aws-elasticbeanstalk/3.4.4/libexec --single-version-externally-managed --record=installed.tx
==> Downloading https://pypi.python.org/packages/source/r/requests/requests-2.6.2.tar.gz
######################################################################## 100,0%
==> python -c import setuptools... --no-user-cfg install --prefix=/usr/local/Cellar/aws-elasticbeanstalk/3.4.4/libexec --single-version-externally-managed --record=installed.tx
==> Downloading https://pypi.python.org/packages/source/t/texttable/texttable-0.8.3.tar.gz

curl: (22) The requested URL returned error: 404 Not Found
Error: Failed to download resource "aws-elasticbeanstalk--texttable"
Download failed: https://pypi.python.org/packages/source/t/texttable/texttable-0.8.3.tar.gz
MacBook-Pro-de-paquirrin:Home paquirrin$ eb --version
-bash: eb: command not found

3 个答案:

答案 0 :(得分:2)

这对我有用。
安装:

>sudo easy_install pip  
>pip install --upgrade --user awsebcli  

现在设置你的python路径和eb可执行文件的路径:

>cd ~  
>sudo find . -name eb  

./ Library / Python / 2.7 / bin / eb #mine在这里找到了

>vim ~/.bash_profile #if you use bash  

将以下行添加到.bash_profile(使用上面的sudo找到的路径)
export PYTHONPATH =“〜/ Library / Python / 2.7 / lib / python / site-packages:$ PYTHONPATH”
export PATH =〜/ Library / Python / 2.7 / bin:$ PATH

>. ~/.bash_profile # source the file  

尝试一下:

>which eb  

./ Library / Python / 2.7 / bin / eb #mine打印此路径

>eb --version # should print the version  

答案 1 :(得分:1)

您似乎正在尝试安装旧版本的awsebcli,并且在指定的网址上不再提供此依赖关系texttable-0.8.3.tar.gz之一

尝试升级您的定义

 brew upgrade awsebcli
 brew install awsebcli

可在

找到更多详情

https://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/FAQ.md

修改

pip install --upgrade awsebcli

如果可以,请尝试升级所有brew定义。

brew update && brew upgrade

答案 2 :(得分:0)

尝试使用pip,如下所示:

sudo pip install awsebcli