学以致用

focus on Python , C++, and some interest in Go and R

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2011年10月8日

摘要: 在使用python的lxml库时碰到了这样的问题:安装libxml2、libxml2-devel、 libxslt、 libxslt-devel都没有问题,安装lxml包也没有任何问题。执行 import lxml 也没有问题,但在执行 from lxml import etree时却出了问题。具体错误日志如下:ImportError: /home/soft/lxml/lxml-2.3/src/lxml/etree.so: undefined symbol: xmlSchematronSetValidStructuredErrors仔细分析之后发现,还是因为动态库路径的问题,也就是说etree 阅读全文
posted @ 2011-10-08 15:22 Jerry.Kwan 阅读(2283) 评论(0) 推荐(0) 编辑