How to resolve "dyld: Library not loaded: @executable_path.." error

Manogna Mujje picture Manogna Mujje · Dec 4, 2017 · Viewed 48.5k times · Source

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.

Answer

Abdennour TOUMI picture Abdennour TOUMI · Jul 2, 2018

It is a bug with awscli and it might be fixed with the next versions. That's why, a best practices is to upgrade :

brew upgrade awscli