安装python goose 遇到的python-dev 以及python-devel问题

来源:互联网 发布:淘宝店铺装修购买 编辑:程序博客网 时间:2024/05/16 09:47

安装python goose 报错


src/lxml/lxml.etree.c:8:22: 错误:pyconfig.h:没有那个文件或目录
src/lxml/lxml.etree.c:16:20: 错误:Python.h:没有那个文件或目录
src/lxml/lxml.etree.c:18:6: 错误:#error Python headers needed to compile C extensions, please install development version of Python.
error: Setup script exited with error: command 'gcc' failed with exit status 1


开始以为是gcc问题,但是发现gcc已经安装了。最后查找资料。


需要安装python-dev ,安装python-dev不成功,

报错 No package python-dev 查资料,需要安装python-devel  

安装python-devel,报错,不成功

继续。


0 0