python - python 中缺少 lxml 模块?

标签 python ironpython lxml python-import

我想使用Python-docx库来处理word文件。 docx.py 引用了 lxml,正如我假设的那样

from lxml import etree

当我启动脚本时,出现错误:

No module named lxml

这是一个标准库吗?那么为什么没有正确引用它呢? IronPython 2.7 RC1。

最佳答案

您需要安装lxml它不是 stdlib 的一部分。我不知道它是否适用于 IronPython。

更新:看起来让 lxml 与 IronPython 一起使用可能并不简单。请参阅这个问题:

关于python - python 中缺少 lxml 模块?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5202368/

相关文章:

ironpython - 用 Python.Net 替换 IronPython?

python - 无法在 OS X 10.8.5 上安装 lxml

python - 使用 pd.read_html 解析 html 表,其中单元格本身包含完整表

python - 你如何从 Python 的 Sprite 表中选择 Sprite 图像?

python - Webdriver 忽略等待 - Firefox、Python

ironpython - 在 ironpython 中使用 ipython 需要什么?

c# - 如何配置 IronPython.StdLib 2.7.3

Evernote XML 上的 Python LXML 解析错误

python - Django 中的 URL 模式正则表达式

python - 值错误 : array is too big - cannot understand how to fix this