解决libxslt/xsltconfig.h: No such file or directory

pip 安装 lxml报错如下:

libxslt/xsltconfig.h: No such file or directory

centos解决办法:

sudo yum install libxslt-devel

ubuntu解决办法:

sudo apt install libxslt-dev

然后还需要做如下操作:

sudo ln -s /usr/include/libxml2/libxml   /usr/include/libxml

问题解决。

本文为原创文章,转载请注明出处。

原文链接:https://850406.xyz/post/解决libxslt-xsltconfig-h-no-such-file-or-directory

评论(0)

还没有评论,来抢沙发吧~

验证码