close

[Solved] Import: No module named ’email.mime’; email is not a package

Hello Guys, How are you all? Hope You all Are Fine. Today I get the following error Import: No module named ’email.mime’; email is not a package in python. So Here I am Explain to you all the possible solutions here.

Without wasting your time, Let’s start This Article to Solve This Error.

How Import: No module named ’email.mime’; email is not a package Error Occurs?

Today I get the following error Import: No module named ’email.mime’; email is not a package in python.

How To Solve Import: No module named ’email.mime’; email is not a package Error ?

  1. How To Solve Import: No module named 'email.mime'; email is not a package Error ?

    To Solve Import: No module named 'email.mime'; email is not a package Error I encountered the same problem just now. Finally, I found it's because I name the python file as 'email.py'. It works after changing its name.

  2. Import: No module named 'email.mime'; email is not a package

    To Solve Import: No module named 'email.mime'; email is not a package Error I encountered the same problem just now. Finally, I found it's because I name the python file as 'email.py'. It works after changing its name.

Solution 1

The issue is in pip. I was unable to update setuptools using

easy_install --upgrade setuptools

I was also unable to install email with pip using

pip install email

I fixed the problem by installing email using easy_install

easy_install email

Hope someone finds that as helpful. Thanks to those who have helped.

Solution 2

I encountered the same problem just now. Finally, I found it’s because I name the python file as ’email.py’. It works after changing its name.

Summery

It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you? Thank You.

Also, Read