I'm following a tutorial online on how to import a docx file using Python 3.9.2.
I've installed the following using terminal:
python -m pip install --upgrade pip setuptools wheel
pip install python-docx
when I run pip list it shows:
Package Version
----------- -------
lxml 4.6.2
pip 21.0.1
python-docx 0.8.10
setuptools 54.0.0
wheel 0.36.2
However, when I enter the following code:
from docx import Document
document = Document()
document.save('CV.docx')
I get this error code:
"Cannot find reference 'Document' in 'docx.py'"
Thank you in advance!