After updating to El Capitan with the latest Mac OSX, you may receive an error when trying to install the AWS CLI by trying:
pip install aws cli Installing collected packages: six, python-dateutil, docutils, botocore, awscli Found existing installation: six 1.4.1 DEPRECATION: Uninstalling a distutils installed project (six) has been deprecated and will be removed in a future version. This is due to the fact that uninstalling a distutils project will only partially uninstall the project. Uninstalling six-1.4.1: Exception: Traceback (most recent call last):
The cause of this is that El Capitan ships with the package six 1.4.1 installed and it can’t uninstall this as it’s considered core.
You can bypass this step by telling your little pip to ignore installed packaged.
sudo pip install awscli --ignore-installed
The AWS CLI will now be available through terminal.