python - Inconsistent import result -
when enter python environment home directory , try import smtplib following error:
>>> import smtplib traceback (most recent call last): file "<stdin>", line 1, in <module> file "/space/jazz/1/users/gwarner/anaconda/lib/python2.7/smtplib.py", line 46, in <module> import email.utils file "email.py", line 3, in <module> email.mime.text import mimetext importerror: no module named mime.text my which python home directory /space/jazz/1/users/gwarner/anaconda/bin/python. strange thing can import smtplib /space/jazz/1/users/gwarner/anaconda/lib/python2.7 though which python same in home directory. how can error in former not in latter if path/which python doesn't change?
looks this problem me.
don't have python script in home directory (email.py in previous link) overwriting package ? if so, rename it.
Comments
Post a Comment