
在centos 上用命令:
?
|
1
|
pip installfabric
|
安装是会出现如下报错,因为太多,我就不全部贴了,部分内容如下:
?
|
1
2
3
4
5
6
|
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包导致,直接安装即可:
?
|
1
|
yum installpython-devel
|
总结


























