ubuntu 安装 lxml 失败 栏目 Ubuntu 繁體版
原文   原文链接

 

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

 

/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/lxmlpython2.7

 

看了下安装文档ui

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

而后再次spa

pip install lxml

就成功了。code

相关文章
相关标签/搜索
每日一句
    每一个你不满意的现在,都有一个你没有努力的曾经。
本站公众号
   欢迎关注本站公众号,获取更多信息