服务器之家:专注于服务器技术及软件下载分享
分类导航

Linux|Centos|Ubuntu|系统进程|Fedora|注册表|Bios|Solaris|Windows7|Windows10|Windows11|windows server|

服务器之家 - 服务器系统 - Centos - 关于Centos安装fabric遇到的问题和解决方法

关于Centos安装fabric遇到的问题和解决方法

2020-08-21 16:40Centos之家 Centos

这篇文章给大家分享的是一个之前碰到的问题了,今天有空写出来,让遇到这个问题的朋友能尽快解决,下面来一起看看吧。

在centos 上用命令:

?
1
pip install fabric

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

?
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 install python-devel

总结

以上就是这篇文章的全部内容,希望对有需要的人能有所帮助,如果有疑问可以留言交流。

延伸 · 阅读

精彩推荐