python can not import docx

161 Views Asked by At

I will state that my goal was simply to write to a docx file for the following reasons:

  1. I am building a study guide and I thought have a little automation to do so in the labeling process would be easier
  2. I like to challenge myself to make my code work

I have tried:

  • pip install python-docx
  • pip install docx
  • pip uninstall python-docx
  • pip uninstall docx
  • pip3 install python-docx
  • pip3 install docx

Though I am still getting a ModuleNotFoundError error message, could anyone think of what to try next?

Traceback (most recent call last):

File "c:\users\xxx\onedrive\desktop\my programs\having fun.py", line 2, in import docx ModuleNotFoundError: No module named 'docx'

0

There are 0 best solutions below