[英]AWS Elastic Beanstalk (eb) installation in Ubuntu 14.04: command not found
Im trying to install AWS eb command line interface in Ubuntu 14.04.我正在尝试在 Ubuntu 14.04 中安装 AWS eb 命令行界面。 I just donwloaded the .zip file.
我刚刚下载了 .zip 文件。 Extracted in a folder.
解压到一个文件夹中。 if I go to folder where eb is (/home/roberto/app/AWS-ElasticBeanstalk-CLI-2.6.1/eb/linux/python2.7) and run it, I get: eb: command not found
如果我转到 eb 所在的文件夹(/home/roberto/app/AWS-ElasticBeanstalk-CLI-2.6.1/eb/linux/python2.7)并运行它,我得到: eb: command not found
Same if I do it with python3 path.如果我用 python3 路径做也一样。
Fixed:固定的:
I just ran the command on a terminal:我只是在终端上运行命令:
$ export PATH=$PATH:/opt/aws/eb/linux/python2.7/
and it's working.它正在工作。
我认为您所要做的就是通过运行以下命令升级 awsebcli: pip install --upgrade awsebcli
If you are using arch linux:如果您使用的是 arch linux:
Find your shell's profile script, in case of bash use .bash_profile run找到你的 shell 的配置文件脚本,如果是 bash 使用 .bash_profile run
$ ls -a ~
$ nano profile_script` #in my case `$ nano .bash_profile
Add添加
export PATH=~/.local/bin:$PATH
Save and exit.保存并退出。
Now run现在运行
$source ~/profile_script
In ubuntu we write like : export PATH=$PATH:/usr/local/lib/python2.7/site-packages/在 ubuntu 中,我们这样写: export PATH=$PATH:/usr/local/lib/python2.7/site-packages/
It worked for me after writing this because eb folder will be present inside mentioned folder.写完后它对我有用,因为 eb 文件夹将出现在提到的文件夹中。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.