AWS EB ( Elastic Beanstalk) CLI 无法在 git bash 的命令行中工作

AWS EB ( Elastic Beanstalk) CLI not working in the command line of git bash

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 电源 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 环境中配置一些额外的东西,有人可以告诉我吗?

经过互联网上可用的不同解决方案以及 AWS 文档建议的多次尝试和错误之后,我终于可以使用来自 Git bash of windows 10 的“eb”。将以下位置放入我的环境变量路径后问题得到解决:

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