优选主流主机商
任何主机均需规范使用

CentOS环境下Hyperledger Fabric安装详细指南及常见问题解决方案

在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

总结

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

未经允许不得转载:搬瓦工中文网 » CentOS环境下Hyperledger Fabric安装详细指南及常见问题解决方案