Missing lxml module in python?

↘锁芯ラ 提交于 2019-12-22 17:58:36

问题


I want o use Python-docx library to process word files. A docx.py references lxml, as i assume from

from lxml import etree

When i start the script, i get error:

No module named lxml

Is this a standard library? Why is not it referenced properly then? IronPython 2.7 RC1.


回答1:


You need to install lxml which is not part of the stdlib. I don't know if it will work with IronPython though.

Update: Seems like it might be non-trivial to get lxml working with IronPython. See this question:

  • How to get lxml working under IronPython?


来源:https://stackoverflow.com/questions/5202368/missing-lxml-module-in-python

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!