-bash: aws: command not found

Daniel Brower picture Daniel Brower · Jun 4, 2019 · Viewed 22k times · Source

I'm on macOS Mojave Version 10.14.5.

I was following the instructions here

Installing the AWS CLI

when I got to the part to type

aws --version

in terminal, and got the response

-bash: aws: command not found

Here's a screenshot of terminal

terminal

I looked at the other posts similar to this on stackoverflow, but they seem to apply to different contexts. They have not helped.

Answer

Kc Bickey picture Kc Bickey · Jun 12, 2019

you need to install python and pip on your mac in order to install the awscli. After the installation of python and pip, please use following command to install aws cli with latest version from AWS.

sudo pip install awscli --force-reinstall --upgrade