How to Fix the ‘Bad Interpreter’ Error From AWS and Python 3.7

  • Home /
  • Blog Posts /
  • How to Fix the ‘Bad Interpreter’ Error from AWS and Python 3.7

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