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
>>>

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...