I'm trying to compile a Python binding, but I'm unable to find the python.h header on debian. Which package should I install?
5 Answers
First of all, the header file for embedding or extending python is Python.h, with an uppercase P. Linux is case sensitive, and python.h won't work.
On debian and debian deriviatives like ubuntu, you can use apt-file to find out what package to install, given a filename:
$ apt-file search Python.h
...
python2.6-dbg: /usr/include/python2.6_d/Python.h
python2.6-dev: /usr/include/python2.6/Python.h
...
1 Comment
keturn
or, if you don't have
apt-file installed, the web interface at packages.debian.org: debian.org/distrib/packages#search_contents