Asked • 05/02/19

fatal error: Python.h: No such file or directory?

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:<!-- language: lang-none --> gcc -Wall utilsmodule.c -o UtilcAfter executing the command, I get this error message:> utilsmodule.c:1:20: fatal error: Python.h: No such file or directorycompilation terminated.in fact I have tried all the suggested solutions over the internet but the problem still exists ... also I have no problem with `Python.h`. I managed to locate the file on my machine ... anybody has faced the same problem before??

1 Expert Answer

By:

Inactive Tutor answered • 20d

Tutor
New to Wyzant

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.