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

猜你喜欢

转载自blog.csdn.net/dlhlSC/article/details/83815970
今日推荐