ImportError: No module named mime.multipart

后端 未结 5 1195
醉酒成梦
醉酒成梦 2021-02-05 13:44

Good morning,

For testing purposes, I have made a one-line Python program:

from email.mime.multipart import MIMEMultipart

When I run it

5条回答
  •  广开言路
    2021-02-05 14:13

    Well, from the docs for Python 2.4, it seems you need:

    from email.MIMEMultipart import MIMEMultipart
    

    (Although you might want to use a newer version of Python, if possible).

提交回复
热议问题