Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AWS throws the following error: "bad interpreter: No such file or directory"

I'm not aware of anything on my system having changed, but the aws CLI tool has stopped working.

$ aws-bash: /Users/user_name/Library/Python/3.7/bin/aws:/usr/local/opt/python/bin/
python3.7: bad interpreter: No such file or directory

I've tried brew reinstall awscli which is suggested elsewhere, but with no luck.

like image 421
kris Avatar asked Oct 20 '20 02:10

kris


1 Answers

Option 1

Type

brew uninstall awscli

Then

brew install awscli

update python to 3.9. look in the following post.

If this approach does not work for you, then try :

Option 2

  1. Go to https://www.python.org/ and use the GUI installer for your OS

  2. pip3 install awscli

like image 162
BeeFriedman Avatar answered Sep 17 '22 14:09

BeeFriedman