且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Cython致命错误:Python.h没有这样的文件或目录

更新时间:2022-04-19 03:25:15

在gcc中

#include "file.h"

告诉gcc寻找该文件位于test.c所在的同一目录中,并且

tells gcc to find the file in the same directory where test.c is, and

#include <file.h>

表示在gcc包含路径中找到file.h,可以使用-I



means to find file.h in the gcc include paths, which can be added with -I

gcc -I/path/to/the/file_h test.c

您可以尝试

you might try

#include <Python.h>

另见致命错误:Python.h:没有这样的文件或目录