Python-Docx setup
I am having an incredibly difficult time installing this simple module and would be really appreciative of any help someone could provide.
I have installed Python-docx via pip/terminal and can run the script without issue.
However, when I try to use Python-docx in Pycharm I consistently get the same error message.
the following script:
from docx import document
leads to:
ImportError: cannot import name 'document'
This is true if i use my main framework as the interpreter (which is able to successfully run python-docx via Terminal). This is also true if i use a virtual-env that literally has only python-docx installed on it and no other modules.
If i look in the virtual-env folder, I can see the docx site-package, which includes the document.py file that apparently can't be imported.
I am on a MacBook Pro (late 2011) and I use Python3.5
I really appreciate any and all help.
Please sign in to leave a comment.
Could you please attach a screenshot that shows the issue? Thank you.