尝试编译C扩展模块时缺少Python.h
发布于 2021-01-29 17:42:58
我正在按照本教程讲解如何使用C\ C ++代码扩展Python。
名为“使用Microsoft Windows的GCC构建扩展模块”部分对我来说失败,并出现以下错误:
fatal error: Python.h: No such file or directory
名为“使用Microsoft Visual C ++构建扩展模块”的部分也失败,并显示类似错误:
fatal error C1083: Cannot open include file: 'Python.h': No such file or directory
我应该怎么做才能解决这个问题?
关注者
0
被浏览
50
1 个回答