相关疑难解决方法(0)

尝试编译C扩展模块时缺少Python.h.

我正在按照本教程学习如何使用C\C++代码扩展Python.

名为"使用GCC for Microsoft Windows构建扩展模块"的部分对我失败,出现以下错误:

fatal error: Python.h: No such file or directory
Run Code Online (Sandbox Code Playgroud)

名为"使用Microsoft Visual C++构建扩展模块"的部分也失败,但出现类似的错误:

fatal error C1083: Cannot open include file: 'Python.h': No such file or directory
Run Code Online (Sandbox Code Playgroud)

我该怎么做才能解决这个问题?

c++ python compilation extending

10
推荐指数
2
解决办法
4万
查看次数

标签 统计

c++ ×1

compilation ×1

extending ×1

python ×1