When import docx in python3.3 I have error ImportError: No module named 'exceptions'

python, python-3.x, python-docx

Solution

If you are using python 3x don't do `pip install docx` instead go for

pip install python-docx 

It is compatible with python 3.x

Official Documentation available here: https://pypi.org/project/python-docx/

Problem

when I import `docx` I have this error: ``` 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' ``` How to fix this error (`python3.3`, docx 0.2.4)?

Original source

Related problems