Aws CLI installation error on windows system

Stack Overflow Asked by Basit Anlat on January 5, 2022

when i tried to install aws cli on cmd(Windows). i am getting message first later its can see below
enter image description here

By the way I added path in environmental variable like that
enter image description here

after finish intallation i get this message
enter image description here

but still i am getting this message .what should i do please help me .
enter image description here

aws’ is not recognized as an internal or external command,
operable program or batch file.

One Answer

see the error message during the installation, "Defauling to user installation because normal site-packages is not writable". So it has been installed inside your user directory.

to find out the user installatiion directory.

  • you can open a python prompt by entering the command python in the command line
  • import sys package import sys
  • check the output of sys.path
  • then you can add the script directoy of the python path to the PATH environment variable

Usually the installation location should be c:users[username]AppDataRoamingPythonPython38scripts/aws.exe

your python version might be different.

You should also add c:users[username]AppDataRoamingPythonPython38scripts to your path.

update: you can also use pip show awscli to see where the module is installed

Answered by Arun Kamalanathan on January 5, 2022

Add your own answers!

Ask a Question

Get help from others!

© 2024 All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP