Search code examples
pythonwindowsamazon-web-servicescommand-line-interface

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


Following instructions found here (and elsewhere) I added '%USERPROFILE%\AppData\Roaming\Python\Python37\Scripts\aws' 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?


Solution

  • if this is in a windows machine By default, the CLI installs to C:\Program Files\Amazon\AWSCLI (64-bit version) or C:\Program Files (x86)\Amazon\AWSCLI (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.