ImportError: No module named mime.multipart

后端 未结 5 1194
醉酒成梦
醉酒成梦 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 13:55

    Module reorganization. The convention is for module names to be lower case, so some got renamed. In this case, the module you're looking for in Python 2.4.3 is email.MIMEMultipart.

    Here's the docs from back then, in case the API has changed.

提交回复
热议问题