5

Including "Python.h" in a C file:

#include <Python.h>

gives Python.h: No such file or directory error. I looked up for other people having the same problem and none gave a direct answer on how to install python*-dev (python2 and python3) on arch Linux. And by the way, this answer doesn't have an arch installation command.

funnydman
  • 9,083
  • 4
  • 40
  • 55
spooky_sec
  • 161
  • 1
  • 10

1 Answers1

4

Turns out "Python.h" is already installed on Arch, but just wasn't in the standard header files location gcc $(pkg-config --cflags python3) testing.c -o testing solved it for me.

funnydman
  • 9,083
  • 4
  • 40
  • 55
spooky_sec
  • 161
  • 1
  • 10