I have installed Pyhton-docx through pip3 isntall python-docx
on my mac terminal.
When I import it into python with import docx
it always gives me an import error.
Why is this so?
Asked
Active
Viewed 741 times
0

picklu
- 875
- 11
- 21

Yassine Elshayeb
- 44
- 7
-
Please provide the error message that you receive when you try to import "docx". – picklu May 16 '20 at 14:34
-
1The answer here may help you solve the problem. https://stackoverflow.com/questions/22765313/when-import-docx-in-python3-3-i-have-error-importerror-no-module-named-excepti – picklu May 16 '20 at 14:44
-
1If you have multiple python installations on your computer, `pip3` might have installed to an unintended environment. If you do have multiple installations, I recommend installing with `python3 -m pip install python-docx`, where `python3` is whichever python installation you want to use. – jkr May 17 '20 at 00:40