Missing Python.h while trying to compile a C extension module

前端 未结 3 1408
灰色年华
灰色年华 2020-12-10 05:17

I\'m following this tutorial on how to extend Python with C\\C++ code.

The section named \"Building the extension module with GCC for Microsoft Windows\" fails for m

3条回答
  •  孤城傲影
    2020-12-10 05:54

    For Linux, Ubuntu users to resolve the issue of missing Python.h while compiling, simply run the following command in your terminal to install the development package of python:

    In Terminal: sudo apt-get install python-dev

    Good luck

提交回复
热议问题