centos安装fabric遇到的问题

这是之前碰到的问题了,今天有空写出来,在centos 上用命令:

安装是会出现如下报错,因为太多,我就不全部贴了,部分内容如下:

src/MD2.c:31:20: 错误:Python.h:没有那个文件或目录
src/MD2.c:131: 错误:expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
In file included from src/MD2.c:147:
src/hash_template.c:48: 错误:expected specifier-qualifier-list before ‘PyObject_HEAD’
src/hash_template.c:59: 错误:expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘PyTypeObject’
src/hash_template.c: 在函数‘newALGobject’中:

出现这种问题是因为没有python-devel包导致,直接安装即可: