This error often looks something like:

.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:

brew reinstall awscli

Then make sure to link to the correct version:

brew link --overwrite awscli