OpenSUSE Leap 42.1,python 2.7.9,pip 8.1.2
我想安装Tushare,但终端告诉我没有lxml。然后我首先使用sudo zypper in libxml2
,但是当我想要安装" lxml"从官方网站下载lxml-3.6.1.tar.gz。它返回:
compilation terminated.
Compile failed: command 'gcc' failed with exit status 1
cc -I/usr/include/libxml2 -c /tmp/xmlXPathInitVXdVTQ.c -o tmp/xmlXPathInitVXdVTQ.o
/tmp/xmlXPathInitVXdVTQ.c:1:26: fatal error: libxml/xpath.h: no such files or directory
#include "libxml/xpath.h"
^
compilation terminated.
Could not find function xmlCheckVersion in library libxml2. Is libxml2 installed?
error: command 'gcc' failed with exit status 1
我已安装' gcc'之前。那我怎么处理这个问题呢? 我将来如何找到解决这些问题的关键? 非常感谢
答案 0 :(得分:1)
您需要安装开发库,很可能称为double[,] twoDemn = new double[2,2];
twoDemn[0,0] = 0;
twoDemn[0,1] = 1;
twoDemn[1,0] = 1;
twoDemn[1,1] = 2;
或libxml2-dev
,以便根据所需的标头(libxml2-devel
)文件进行编译。