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 from: /usr/local/aws/bin/python
Reason: image not found
Abort trap: 6
Any relevant inputs on how to fix this would be highly appreciated.
This error occurs because your virtual environment has broken symlinks. Here is a nice solution taken from tevino's
fix_virtualenvgist:Also, here is a similar question: Broken references in Virtualenvs.