When trying to compile pyqt i have an error
i have installed all the prerequistes but its still showing the same problem please find an answer for this
When trying to compile pyqt i have an error
i have installed all the prerequistes but its still showing the same problem please find an answer for this
For Python 2
Since
Python.h
is provided by-dev
For Python 3
the missing header file Python.h is in the python-dev package, first check that you have it installed:
You can also use 'locate' to see if the file exists:
Once you know that you have the header file, try to see where the compiler is looking for it:
In my case the problem was that the file was in /usr/include/python2.7, but the Makefile include path (-I) contained /usr/local/include/python2.7. To work around this, I made a link:
Maybe there is a nicer way to do this, but at least the compilation worked.
Best, Harri