之前记得安装libxslt和libxmlyum install libxml* -yyum install libxslt* -y wget http://lxml.de/files/lxml-3.1.2.tgztar xzvf lxml-3.1.2.tgzcd lxml-3.1.2python setup.py buildpython setup.py installcd ..#验证是否安装成功shell > python>>> import lxml