【文件属性】:
文件名称:python模块: lxml
文件大小:11.95MB
文件格式:RAR
更新时间:2020-07-13 08:05:22
LXML
包含:libxml2-2.9.4.tar.gz libxslt-1.1.28.tar.gz lxml-3.8.0.tar.gz
步骤参考:
1)tar -zxvf libxml2-2.9.4.tar.gz
cd libxml2-2.9.4
./configure --prefix=/usr/local/libxml2/ --with-python=/usr/local/python27/bin/python
make && make install
2)tar -zxvf libxslt-1.1.28.tar.gz
cd libxslt-1.1.28
./configure --prefix=/usr/local/libxslt/ --with-python=/usr/local/python27/bin/python --with-libxml-prefix=/usr/local/libxml2 --with-libxml-include-prefix=/usr/local/libxml2/include/ --with-libxml-libs-prefix=/usr/local/libxml2/lib/
make && make install
3)libxml2和libxslt安装成功后,进入lxml源码目录
tar -zxvf lxml-3.8.0.tar.gz
cd lxml-3.8.0
python27 ./setup.py install --with-xml2-config=/usr/local/libxml2/bin/xml2-config --with-xslt-config=/usr/local/libxslt/bin/xslt-config
【文件预览】:
libxml2-2.9.4.tar.gz
libxslt-1.1.28.tar.gz
lxml-3.8.0.tar.gz