Can't connect with Elastic Beanstalk CLI: "C:\Users\Danny B>eb init 'eb' is not recognized as an internal or external command, operable program or batch file."

0

I have succesfully installed Elastic Beanstalk CLI on my local Windows machine following instrucions here:

https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/eb-cli3-install-advanced.html

I have also added these paths in my local windows environment variables:

%USERPROFILE%\AppData\Roaming\Python\Scripts

%USERPROFILE%\AppData\Local\Programs\Python\Python311\Scripts

%USERPROFILE%\AppData\Roaming\Python\Python311\Scripts

Ehe error I'm getting in my command line when I type C:\Users\Danny B>eb init

is this:

'eb' is not recognized as an internal or external command, operable program or batch file.

Can anybody help? Thanks!

已提問 10 個月前檢視次數 418 次
1 個回答
0

Hi

It seems that even though you have configured the Paths they have not loaded into your terminal environment.

If you are using Powershell you can use the following command to reload

$env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User") 

Another way to reload is to simply restart the machine.

Hope this helps

profile picture
Bisina
已回答 10 個月前
  • I restarted the machine, but it didn't help. I don't understand how to translate what you wrote for my situation.

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南