How Do You Troubleshoot the Message “ModuleNotFoundError: No module named ‘awscli'”?

Problem scenario
You try to run an AWS CLI command. But you receive this error:

' File "/bin/aws-cli-1.16.226/bin/aws", line 19, in
import awscli.clidriver
ModuleNotFoundError: No module named 'awscli'
'

Solution
Did you run sudo python3 setup.py install ? If you only ran the build step, this could happen.

Leave a comment

Your email address will not be published. Required fields are marked *