缺少python中的lxml模块? [英] Missing lxml module in python?

查看:302
本文介绍了缺少python中的lxml模块?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望o使用Python-docx库来处理Word文件.正如我从

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

from lxml import etree

启动脚本时出现错误:

No module named lxml

这是一个标准库吗?那为什么为什么引用不正确呢? IronPython 2.7 RC1.

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

推荐答案

您需要安装 lxml ,它不是stdlib的一部分.我不知道它是否可以与IronPython一起使用.

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

更新:看起来让lxml与IronPython一起工作似乎并不简单.看到这个问题:

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

这篇关于缺少python中的lxml模块?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆