【问题标题】:AWS EB ( Elastic Beanstalk) CLI not working in the command line of git bashAWS EB(Elastic Beanstalk)CLI 在 git bash 的命令行中不起作用
【发布时间】:2021-02-24 22:13:53
【问题描述】:

AWS EB (Elastic Beanstalk) CLI 未在 git bash (Windows 10) 中运行。我已经从 https://github.com/aws/aws-elastic-beanstalk-cli-setup/blob/master/README.md 的 AWS 文档中成功安装了 AWS EB CLI。最后,我设置了文档中提到的环境变量。所以“eb”命令正在 Windows Power shell 中工作。但是当我尝试从 GIT Bash / IntelliJ bash 提示符访问“eb”命令时,它不起作用。

在 windows power shell 上工作正常:

PS C:\> eb --version
EB CLI 3.19.2 (Python 3.7.3) 

“用户变量”->“路径”下的环境变量设置如下:

Environment variable set windows

在尝试从 Git Bash 访问“eb”时,错误如下:

$ eb
bash: eb: command not found

$ echo $PATH
.....
......
/c/Users/xxxxxx/.ebcli-virtual-env/executables:

多次重启系统和命令行界面。

如果环境变量设置有问题,或者需要在 bash 环境中配置一些额外的东西,有人可以告诉我吗?

【问题讨论】:

    标签: amazon-web-services amazon-elastic-beanstalk command-line-interface


    【解决方案1】:

    在互联网上使用不同的解决方案以及 AWS doc 建议进行了多次试验和错误之后,我终于可以使用 Windows 10 的 Git bash 中的“eb”。将以下位置放入环境变量路径后,问题得到解决:

    C:\Users\XXXX\AppData\Roaming\Python\Python37\Scripts

    【讨论】:

      猜你喜欢
      • 2013-08-23
      • 2017-09-08
      • 2015-01-25
      • 2019-02-14
      • 1970-01-01
      • 2021-04-20
      • 2015-07-17
      • 2018-05-23
      • 2012-12-21
      相关资源
      最近更新 更多