首页 > 代码库 > python lxml install

python lxml install

之前记得安装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

python lxml install