安装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,报错,不成功
继续。