Ubuntu下安装PyQuery出现:ERROR: /bin/sh: 1: xslt-config: not found

(1)安装PyQuery时出现上述错误,

          并且下面跟着一句提示的话:

             ** make sure the development packages of libxml2 and libxslt are installed **

         可以判断是因为依赖的原因,用apt-get 来装libxml2,发现已经安装了,然后再apt-get安装libxslt发现找不到这个软件,看来源里面找不到这个,或者是不叫这个名字。


(2)问题解决

        万事问Google,果然,找到了问题的解决方案。不得不赞美StackOverflow,基本上错误都能在这找到答案。

        解决办法:

         安装命令     apt-get install libxslt-dev

 

posted @ 2013-04-23 19:46  坚固66  阅读(545)  评论(0编辑  收藏  举报