pip error: command 'gcc' failed with exit status 1

时间:2023-12-28 11:08:44

SWIG/_m2crypto_wrap.c:127:20: 致命错误:Python.h:没有那个文件或目录
     #include <Python.h>
                        ^
    编译中断。
    error: command 'gcc' failed with exit status 1

sudo yum install python-devel

sudo yum install libevent-devel

sudo yum install libffi libffi-devel

easy_install gevent