当我导入 docx
出现此错误:
>File "/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/docx-0.2.4-py3.3.egg/docx.py", line 30, in <module>
from exceptions import PendingDeprecationWarning
ImportError: No module named 'exceptions'
如何解决此错误(python3.3
,docx 0.2.4
)?
exceptions
模块在Python 3中不存在(__builtin__
无论如何都定义了例外)。DocX到Python 3的转换似乎还没有完成。