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
Code language: Bash (bash)

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
Code language: Bash (bash)

Force link the version

Then make sure to link to the correct version:

brew link --overwrite awscli
Code language: Bash (bash)
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments