'-bash: aws: command not found

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.



Solution 1:[1]

Install python version 3 or higher And Use this command to download aws cli with python3

 curl "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip" -o "awscli-bundle.zip"
unzip awscli-bundle.zip
sudo /usr/local/bin/python3 awscli-bundle/install -i /usr/local/aws -b /usr/local/bin/aws

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 mnnim