Unable to install the package "email"

26,563

email is an standard library , which need not to be imported separately,

just use import email .

for more usage and features kindly refer to python docs

Share:
26,563
Admin
Author by

Admin

Updated on July 27, 2022

Comments

  • Admin
    Admin almost 2 years

    I can't install the package "email" on Ubuntu 14 neither for Python3, not for Python 2.7

     sudo pip install email
     # or sudo pip3 install email
    

    And the error is:

      ImportError: No module named 'cStringIO'
    
        ----------------------------------------
    

    I need to install it for Python3.

    • Rahul
      Rahul about 8 years
      Have you tried importing email module directly ? I think it's the part of standard library.
    • Admin
      Admin about 8 years
      @Rahul, you're a genius.
    • Admin
      Admin about 8 years
      @Rahul, why can't I do this "from email.MIMEMultipart import MIMEMultipart" ---> "ImportError: No module named 'email.MIMEMultipart'" ?
    • Rahul
      Rahul about 8 years
      Try this from email.mime.multipart import MIMEMultipart
  • mohsinulhaq
    mohsinulhaq about 7 years
    Its not included by default in Python 3 for Raspbian OS