AWS CLI fails after Mac Upgrade

The error message seems to suggest some conflict between pip and botocore:

pkg_resources.DistributionNotFound: The ‘botocore==1.4.51’ distribution was not found and is required by awscli

Try to install in a virtualenv to see if that fixes it

In case you’re not sure how to, here are some instructions on how to install in a virtualenv (using virtualenvwrapper).

Install virtualenv and virtualenvwrapper:

pip install virtualenv
pip install virtualenvwrapper
export WORKON_HOME=~/.virtualenvs
source /usr/local/bin/

Create an aws-shell virtualenv and install aws-shell:

mkvirtualenv aws-shell
pip install aws-shell

If you want to activate the aws-shell virtualenv again later, run:

workon aws-shell
deactivate # to finish virtualenv session