Utilsmodule.c: 1:20: fatal error: python.h: no such file or directory compilation terminates.

报错命令:

gcc -Wall utils.c -o Utilc

原因:没有安装python dev的头文件和静态库

解决方法:

sudo apt-get install python-dev   # for python2.x installs
sudo apt-get install python3-dev  # for python3.x installs

posted @ 2022-11-13 22:36  dlhl  阅读(29)  评论(0)    收藏  举报