【Python-Debuge】moduleNotFoundError:No module named ‘exceptions‘

【Python-Debuge】moduleNotFoundError:No module named ‘exceptions’

When using python to operate the doc file, an error occurred: the
Insert picture description here
reason is that the docx installed through pip is not applicable:

Solution: uninstall docx, install python-docx

There are two installation methods. You can enter pip uninstall docx and pip install python-docx through the cmd command line. If it is pycharm, it is simpler as follows:
Insert picture description here

Guess you like

Origin blog.csdn.net/weixin_46837674/article/details/113826355