摘要:
在使用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 阅读全文