无法编译cython生成的.c文件

时间:2020-05-16 03:40:28

标签: python cython

我正在使用cython将python文件转换为c文件,但是当我尝试编译c文件时,它对我来说失败了。

Python.h: No such file or directory
       #include "Python.h"
                    ^
compilation terminated.

我读了这篇文章:Cython Fatal Error: Python.h No such file or directory

但是我听不懂。我尝试使用#include <Python.h>代替#include "Python.h,但对我来说也失败了。

有解决方案吗?谢谢。

0 个答案:

没有答案
相关问题