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

0 min read 59 words

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
Tags:
Andrew
Andrew

Andrew is a visionary software engineer and DevOps expert with a proven track record of delivering cutting-edge solutions that drive innovation at Ataiva.com. As a leader on numerous high-profile projects, Andrew brings his exceptional technical expertise and collaborative leadership skills to the table, fostering a culture of agility and excellence within the team. With a passion for architecting scalable systems, automating workflows, and empowering teams, Andrew is a sought-after authority in the field of software development and DevOps.

Tags