Compiling Python bindings on Linux

I am trying to compile a Python binding, but I cannot find the python.h header on debian. Which package should I install?

+3
source share
5 answers

you must install python-dev

+5
source

You must install the python-dev package.

+1
source

, python Python.h, P. Linux , python.h .

debian debian-, ubuntu, apt , , , :

$ 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

.

sudo apt-get install python-dev
0
sudo apt-get install python2.6-dev 

sudo apt-get install python2.7-dev 

virtualenv

0

Source: https://habr.com/ru/post/1738726/


All Articles