之前记得安装libxslt和libxml
yum install libxml* -y
yum install libxslt* -y
wget http://lxml.de/files/lxml-3.1.2.tgz
tar xzvf lxml-3.1.2.tgz
cd lxml-3.1.2
python setup.py build
python setup.py install
cd ..
#验证是否安装成功
shell > python
>>> import lxml
时间: 2024-10-11 01:01:18