开发者

Installing Python's libxml2dom on Ubuntu 11.04

开发者 https://www.devze.com 2023-03-08 06:19 出处:网络
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 na

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?


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

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

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号