This error often looks something like:

1
2
.zshrc: /usr/local/bin/aws: bad interpreter:
/usr/local/opt/python/bin/python3.6: no such file or directory

Reinstall AWSCLI

If you have started getting the Bad Interpreter error when you call awscli, then you can easily fix it by running:

1
brew reinstall awscli

Then make sure to link to the correct version:

1
brew link --overwrite awscli