Fix: ModuleNotFoundError: No module named boto3 [Python]


Traceback (most recent call last):
  File "/Users/dev/PycharmProjects/pythonProject/main.py", line 1, in <module>
    import boto3

ModuleNotFoundError: No module named 'boto3'

Process finished with exit code 1

You will get ModuleNotFoundError for module boto3 when you run a Python program that has an import for boto3 module but is not installed.


Fix:

Run the below command in CMD/Terminal to install boto3 module.

pip3 install boto3

or,

pip install boto3

If you are using an IDE like PyCharm, then you can hover over the import and choose the option "Install package boto3"

Install package boto3

This is not an AI-generated article but is demonstrated by a human on an M1 Mac running macOS Sonoma 14.0 and PyCharm IDE.

Please support independent contributors like Code2care by donating a coffee.

Buy me a coffee!

Buy Code2care a Coffee!

Facing issues? Have Questions? Post them here! I am happy to answer!

Author Info:

Rakesh (He/Him) has over 14+ years of experience in Web and Application development. He is the author of insightful How-To articles for Code2care.

Follow him on: X

You can also reach out to him via e-mail: rakesh@code2care.org

Copyright © Code2care 2024 | Privacy Policy | About Us | Contact Us | Sitemap