在 Ubuntu 11.04 上安装 Python 的 libxml2dom

发布于 2024-11-09 18:23:52 字数 247 浏览 10 评论 0原文

有兴趣在我的 Python 脚本中使用 libxml2dom 来(显然)解析一些 XML。

当我尝试导入“libxml2dom”时,我收到错误消息“ImportError:没有名为 libxml2dom 的模块”,

  • 我似乎无法在 apt-get 存储库中找到它
  • ,它似乎不存在于 easy_install 中。
  • 我已经安装了 libxml2。

我如何/从哪里可以安装它?

Interested in using libxml2dom in a Python script of mine to (obviously) parse some XML.

When I attempt to import "libxml2dom" I receive the error message "ImportError: No module named libxml2dom"

  • I can't seem to find it in the apt-get repo
  • It doesn't seem to be present within easy_install.
  • I already have libxml2 installed.

How can I / where can I install this from?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

雪花飘飘的天空 2024-11-16 18:23:52

pip install 适用于我的 Ubuntu 11.04 (python 2.7)

$ sudo apt-get install python-pip
$ sudo pip install libxml2dom

pip install works for me on Ubuntu 11.04 (python 2.7)

$ sudo apt-get install python-pip
$ sudo pip install libxml2dom
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文