I am following the AWS CLI Setup guide. I have managed to successfully install the tool on my Mac OS X terminal with the following output:
Running cmd: /usr/bin/
Take a look at the note on https://docs.aws.amazon.com/cli/latest/userguide/install-bundle.html
By default, the install script runs under the system default version of Python. If you have installed an alternative version of Python and want to use that to install the AWS CLI, run the install script with that version by absolute path to the Python executable.
For the step where you run the install executable
instead of doing just:
$ sudo ./awscli-bundle/install -i /usr/local/aws -b /usr/local/bin/aws
Find out where your python is installed for example
$ which python
and then use the path to install the executable like
$ sudo
The above should fix the problem.