I was trying to check the AWS-CLI version on my MAC OS X. And the below error hit back:
dyld: Library not loaded: @executable_path/../.Python
Referenced f
I had it installed through curl, the regular way
$ curl "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip" -o "awscli-bundle.zip"
Then it stopped working complaining about not finding python2.7
dyld: Library not loaded: @executable_path/../.Python
Referenced from: /usr/local/aws/bin/python2.7
Reason: image not found
Abort trap: 6
so I fixed it by following these steps (make sure you don't do this if you installed it through brew):
$ sudo rm -rf /usr/local/aws
$ sudo rm /usr/local/bin/aws
Then I installed it using brew:
$ brew upgrade
$ brew install awscli