When I am running
from docx import Document
I am getting error as
ImportError: cannot import name Document
I am working on Python 2.7.
It looks like you have installed only docx
, but I tried with this and worked for me:
pip uninstall docx
pip install python-docx
This way you will be using the newest version of the library, hope you find it useful.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With