2016-04-02 9 views
1

Ich möchte die EB CLI mit dem Gebräu Befehl installieren.AWS - Installieren Sie das EB CLI auf OS X

So betreibe ich diesen Befehl ein:

$ brauen installieren awsebcli

Es scheint, dass alles in Ordnung ist, aber ich habe einen Fehler am Ende

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 

Antwort

1

Es scheint, dass Sie versuchen, ältere Version von awsebcli und einen von dieser Abhängigkeit texttable-0.8.3.tar.gz zu installieren ist nicht mehr unter der angegebenen uRL

versuchen und aktualisieren Sie Definitionen

brew upgrade awsebcli 
brew install awsebcli 

Weitere Informationen finden Sie unter

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

EDIT

pip install --upgrade awsebcli 

oder versuchen Sie finden alle das Gebräu Definition zu aktualisieren, wenn das möglich ist für dich.

brew update && brew upgrade 
+0

MacBook-Pro-de-paquirrin: Home paquirrin $ brauen awsebcli Fehler Upgrade: Keine solche Datei oder das Verzeichnis -/usr/local/Keller/aws-elasticbeanstalk –

0

Versuch pip statt wie unter Verwendung von:

sudo pip install awsebcli

1

Das ist für mich gearbeitet.
Installation:

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

nun Ihren Python-Pfad und der Pfad zum eb ausführbar gesetzt:

>cd ~ 
>sudo find . -name eb 

./Library/Python/2.7/bin/eb #mine hier gefunden wurde

>vim ~/.bash_profile #if you use bash 

Fügen Sie die folgenden Zeilen zu .bash_profile hinzu (verwenden Sie den Pfad von sudo oben)
export PYTHONPATH = "~/Bibliothek/Python/2.7/lib/Python/site-packages: $ PYTHONPATH“
PATH export = ~/Library/Python/2.7/bin: $ PATH

>. ~/.bash_profile # source the file 

Probieren Sie es aus:

>which eb 

./Library/Python /2.7/bin/eb #mine druckt dieser Weg

>eb --version # should print the version