Jump to content

[Solved] Please add Python Modules MIMEText and EmailMessage


Recommended Posts

Posted
root@tommy2 [/home/krydos]# /usr/local/python3.10/bin/pip3.10 install mimetext
ERROR: Could not find a version that satisfies the requirement mimetext (from versions: none)
ERROR: No matching distribution found for mimetext
root@tommy2 [/home/krydos]# /usr/local/python3.10/bin/pip3.10 install MIMEText
ERROR: Could not find a version that satisfies the requirement MIMEText (from versions: none)
ERROR: No matching distribution found for MIMEText
root@tommy2 [/home/krydos]# /usr/local/python3.10/bin/pip3.10 install emailmessage
ERROR: Could not find a version that satisfies the requirement emailmessage (from versions: none)
ERROR: No matching distribution found for emailmessage
root@tommy2 [/home/krydos]# /usr/local/python3.10/bin/pip3.10 install EmailMessage
ERROR: Could not find a version that satisfies the requirement EmailMessage (from versions: none)
ERROR: No matching distribution found for EmailMessage

 

Posted

Those don't need to be installed. They are part of the default Python install, and you can just import.

root@tommy2 [/home/krydos]# /usr/bin/python3.10
Python 3.10.5 (main, Jul 30 2022, 21:17:50) [GCC 4.8.5 20150623 (Red Hat 4.8.5-44)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import email
>>> import email.mime.text
>>> import email.message
>>>

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...