问题描述:from docx import Document
ModuleNotFoundError: No module named 'docx'
执行:pip install docx,还提示如下错误:
from exceptions import PendingDeprecationWarning
ModuleNotFoundError: No module named 'exceptions'
解决方法:
1、先卸载docx:pip uninstall docx
2、重新安装python-docx:pip install python-docx