导入smptlib时出错

时间:2015-07-07 14:05:43

标签: python importerror smtplib

所以我知道我必须首先导入smtplib,但是我收到了这个错误:

>>> import smtplib
Traceback (most recent call last):
  File "<frozen importlib._bootstrap>", line 2218, in _find_and_load_unlocked
AttributeError: 'module' object has no attribute '__path__'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<pyshell#0>", line 1, in <module>
    import smtplib
  File "C:\Python34\lib\smtplib.py", line 47, in <module>
    import email.utils
  File "C:\Documents and Settings\JH.LENOVO-D7A4458D.006\Desktop\Python\Rozrobené\email.py", line 5, in <module>
    from email.mime.text import MIMEText
ImportError: No module named 'email.mime'; 'email' is not a package

我试图重新安装整个python,但它仍然是相同的。有什么想法吗?

0 个答案:

没有答案