filmov
tv
gcc - fatal error: Python.h: No such file or directory

Показать описание
#short
#python
#gcc
#python-c-api
I am trying to build a shared library using a C extension file but first I have to generate the output file using the command below:
gcc -Wall utilsmodule.c -o Utilc
After executing the command, I get this error message:
utilsmodule.c:1:20: fatal error: Python.h: No such file or directory
compilation terminated.
I have tried all the suggested solutions over the internet but the problem still exists. I have no problem with Python.h. I managed to locate the file on my machine.
#python
#gcc
#python-c-api
I am trying to build a shared library using a C extension file but first I have to generate the output file using the command below:
gcc -Wall utilsmodule.c -o Utilc
After executing the command, I get this error message:
utilsmodule.c:1:20: fatal error: Python.h: No such file or directory
compilation terminated.
I have tried all the suggested solutions over the internet but the problem still exists. I have no problem with Python.h. I managed to locate the file on my machine.
gcc - fatal error: Python.h: No such file or directory
fatal error: Python.h: No such file or directory
PYTHON : fatal error: Python.h: No such file or directory
fatal error: Python.h: No such file or directory
greenlet.h:8:20: fatal error: Python.h: No such file or directory
gcc error Python.h: No such file or directory
fatal error: Python.h: No such file or directory
PYTHON : fatal error: Python.h: No such file or directory
Fix Error: GCC/G++ No such file or directory
Resolving the 'fatal error: Python.h: No such file or directory' Issue
Python :fatal error: Python.h: No such file or directory(5solution)
Use Python.h to C Script with GCC and CLANG Compiler
fatal error :'python.h' no file or directory? (3 Solutions!!)
fatal error: Python.h: No such file or directory
Fatal error:Python.h no such file or directory
C++ : Why doesn't #include Python.h work?
fatal error: Python.h: No such file or directory
Running make on makehuman results in the following fatal error: Python.h: No such file or directory
How to fix fatal error: pyconfig.h: No such file or directory
Ubuntu: Python.h: No such file or directory #include <Python.h> (2 Solutions!!)
C++ : can't include Python.h in visual studio
python.h not found
getting this many errors in gcc ☠
C++ : include Python.h error : initconfig.h not found
Комментарии