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
After read the topic, It works for me:
$ sudo rm -rf /usr/local/aws
$ sudo rm /usr/local/bin/aws
$ brew reinstall awscli
I had similar issue while installing awscli with homebrew on mac. So final approach was "brew uninstall python3" and reinstall awscli again.