码迷,mamicode.com
首页 > 系统相关 > 详细

ubuntu 下安装 lxml 失败

时间:2015-04-20 06:57:19      阅读:180      评论:0      收藏:0      [点我收藏+]

标签:

 

/tmp/pip-build-7HN4t8/lxml/src/lxml/includes/etree_defs.h:14:31: fatal error: libxml/xmlversion.h: No such file or directory

 

/bin/python -c "import setuptools, tokenize;__file__=‘/tmp/pip-build-7HN4t8/lxml/setup.py‘;exec(compile(getattr(tokenize, ‘open‘, open)(__file__).read().replace(‘\r\n‘, ‘\n‘), __file__, ‘exec‘))" install --record /tmp/pip-LUVnYB-record/install-record.txt --single-version-externally-managed --compile --install-headers /root/pycode/blogenv/include/site/python2.7/lxml" failed with error code 1 in /tmp/pip-build-7HN4t8/lxml

 

看了下安装文档

apt-get install libxml2-dev libxslt-dev python-dev

然后再次

pip install lxml

就成功了。

ubuntu 下安装 lxml 失败

标签:

原文地址:http://www.cnblogs.com/tk091/p/4440545.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!