AlexNikolaev94 AlexNikolaev94 - 1 year ago 93
Python Question

Can't find "Python.h" file while installing Watchman

I use Linux Mint 17 'Quiana' and I want to install Watchman to use later Ember.js. Here were my steps:

$ git clone


$ cd watchman
$ ./
$ ./

and, when I ran
to compile files, it returned the following error:

pywatchman/bser.c:31:20: fatal error: Python.h: no such file or directory
#include <Python.h>
compilation terminated.
error: command 'i686-linux-gnu-gcc' failed with exit status 1
make[1]: *** [py-build] Error 1
make[1]: Leaving the directory `/home/alex/watchman'
make: *** [all] Error 2

I tried to run

$ sudo apt-get install python3-dev

but it appears to be already in my system. What have I done wrong?

Answer Source

Usually its the python-dev libs missing. Are you sure the configure uses the python 3 instead of python 2? Because if thats the case you should install python-dev instead of python3-dev.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download