Problems and solutions with Centos installation of fabric

  • 2020-05-15 03:08:27
  • OfStack

Use the command on centos:


pip install fabric

The following error will appear in the installation, because there are too many, I will not all post, part of the content is as follows:


src/MD2.c:31:20:  Error: Python.h : there is no file or directory 
src/MD2.c:131:  Error: expected  ' =',  ' ,',  ' ;',  ' asm' or  ' __attribute__' before  ' *' token
In file included from src/MD2.c:147:
src/hash_template.c:48:  Error: expected specifier-qualifier-list before  ' PyObject_HEAD'
src/hash_template.c:59:  Error: expected  ' =',  ' ,',  ' ;',  ' asm' or  ' __attribute__' before  ' PyTypeObject'
src/hash_template.c:  The function ' newALGobject' In the :

This problem arises because there is no python-devel Package causes, direct installation can:


yum install python-devel

conclusion

The above is the entire content of this article, I hope to help those in need, if you have any questions, please leave a message to communicate.


Related articles: