+-
在python3.3中导入docx时我有错误ImportError:没有名为’exceptions’的模块
当我导入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)?

最佳答案
如果您使用的是python 3x,请不要执行pip install docx

pip install python-docx 

它与python 3x兼容

官方文件:https://pypi.org/project/python-docx/

点击查看更多相关文章

转载注明原文:在python3.3中导入docx时我有错误ImportError:没有名为’exceptions’的模块 - 乐贴网