AWS cli windows – still getting "'aws' is not recognized…" after adding path to environment variables?

Question:

Following instructions found here (and elsewhere) I added ‘%USERPROFILE%AppDataRoamingPythonPython37Scriptsaws’ to Path (tried with and without aws at the end)

enter image description here

I clicked OK everywhere and restartet the CLI, but I am still getting “‘aws’ is not recognized as an internal or external command,
operable program or batch file.” when typing aws at the command prompt (I restarted it after the path update). Any ideas what I might be missing?

Asked By: L Xandor

||

Answers:

if this is in a windows machine By default, the CLI installs to C:Program FilesAmazonAWSCLI (64-bit version) or C:Program Files (x86)AmazonAWSCLI (32-bit version). So I guess the PATH that you’ve added is incorrect.

try checking this link https://docs.aws.amazon.com/cli/latest/userguide/install-windows.html#awscli-install-windows-path

run the command – where aws

once you know where it was installed then copy that and it to your path. i hope this helps.

Answered By: Len

Resuming. The first answer is complemented bye the second. Because is important add to "Path" environment for aws CLI the path where is installed the CLI (executing the comand "where aws" in cmd . After this one reboot to the machine must recognize the commands.

Answered By: user20277315