【问题描述】
鲲鹏环境下执行python3 setup.py install报fatal error: Python.h: No such file or directory错误,详细报错如下
FlowControl.c:31:10: fatal error: Python.h: No such file or directory
31 | #include "Python.h"
| ^~~~~~~~~~
compilation terminated.

【解决方法】
安装python3-devel
yum -y install python3-devel
然后再执行python3 setup.py install
【问题描述】
鲲鹏环境下执行python3 setup.py install报fatal error: Python.h: No such file or directory错误,详细报错如下
FlowControl.c:31:10: fatal error: Python.h: No such file or directory
31 | #include "Python.h"
| ^~~~~~~~~~
compilation terminated.
【解决方法】
安装python3-devel
yum -y install python3-devel
然后再执行python3 setup.py install