我正在按照本教程学习如何使用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)
我该怎么做才能解决这个问题?