python - pip安装lxml失败
PHP中文网
PHP中文网 2017-04-17 17:46:05
0
3
466

pip安装lxml库,试了很多次,都会卡在这里:

用top命令查看系统资源,发现物理内存基本耗尽,但是虚拟内存没怎么用:

该用什么办法安装lxml呢?服务器性能没办法改善了。

PHP中文网
PHP中文网

认证高级PHP讲师

reply all(3)
迷茫

After finding a machine with the same version and installing it, copy the lxml under site-package and you can use it^_^
The premise is that the target machine has libxml2, libxslt, libxml2-devel, libxslt installed -devel.

小葫芦

I don’t know what your specific problem is. Here are my installation steps:

apt-get install libxml2-dev, libxslt1-dev, python-dev
pip install lxml
伊谢尔伦

lxml installation takes a long time, more than 10 minutes, it is recommended to wait longer.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template