如题,报错
ImportError: cannot import name 'OxmlElement' from 'docx.oxml.xmlchemy'
报错原因 最新版本升级了API
Ref: python-openxml/python-docx#1256 (comment)
解决方法:
pip install python-docx==0.8.11
文章报道了一个问题,即在使用最新版本的python-docx库时遇到ImportError,原因是APIRef发生了变化。解决办法是将python-docx的版本降级到0.8.11。
如题,报错
ImportError: cannot import name 'OxmlElement' from 'docx.oxml.xmlchemy'
报错原因 最新版本升级了API
Ref: python-openxml/python-docx#1256 (comment)
解决方法:
pip install python-docx==0.8.11
4094
656
749