Is libxml2 installed?
Could not find function xmlCheckVersion in library libxml2. Is libxml2 installed?
building 'lxml.etree' extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/src
creating build/temp.linux-x86_64-2.7/src/lxml
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -Isrc/lxml/includes -I/usr/include/python2.7 -c src/lxml/lxml.etree.c -o build/temp.linux-x86_64-2.7/src/lxml/lxml.etree.o -w
In file included from src/lxml/lxml.etree.c:320:0:
src/lxml/includes/etree_defs.h:14:31: fatal error: libxml/xmlversion.h: 没有那个文件或目录
compilation terminated.
Compile failed: command 'gcc' failed with exit status 1
cc -I/usr/include/libxml2 -c /tmp/xmlXPathInitshtn_t.c -o tmp/xmlXPathInitshtn_t.o
/tmp/xmlXPathInitshtn_t.c:1:26: fatal error: libxml/xpath.h: 没有那个文件或目录
compilation terminated.
*
Could not find function xmlCheckVersion in library libxml2. Is libxml2 installed?
*
error: command 'gcc' failed with exit status 1
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
sudo apt-get install libxml2-dev libxslt1-dev python-dev
and
apt-get install libxml2-dev libxslt1-dev python-dev