views:

50

answers:

4

Hi

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?

Thanks in advance

+4  A: 

you should install python-dev

nosklo
yay, I'm the fastest! :)
nosklo
+1  A: 

The python-dev package needs to be installed.

McJeff
A: 

You are missing the development header. try

sudo apt-get install python-dev
leChuck
+1  A: 

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
...
ataylor
or, if you don't have `apt-file` installed, the web interface at packages.debian.org: http://www.debian.org/distrib/packages#search_contents
keturn