Python+Word: I have installed the extension library docx using the "pip install docx" command. Why can't I run the code in the book to manipulate Word files?

The name of the extension library for operating Word files is python-docx, not docx. Also note that the extension library python-docx can only operate on Word 2007 or newer documents, and cannot process documents before Word 2003.

image

Guess you like

Origin blog.csdn.net/weixin_42321517/article/details/112515043