Tuesday, August 02, 2011

Cannot find python include path - Ubuntu Forums

Cannot find python include path - Ubuntu Forums:


"Re: Cannot find python include path
The path is for python header files (files ending in .h). The desklet you
are building apparently wants these files. They are contained in the
package python2.4-dev, which is not installed by default. You
would need to install it with Synaptic (or Adept if you are using Kubuntu/KDE).

Unfortunately, it does not install the directory as /usr/include/python, but as
/usr/include/python2.4. There may be a command line option for configure,
to specify the path (read the file, there should be some comments in there
about it), or you could edit configure directly to change the path
name, or you could make a link in /usr/include to satisfy the requirement:

In a terminal
Code:
sudo ln -s /usr/include/python2.4 /usr/include/python
I suspect that since the configure file expects /usr/include/python to exist,
there may be other path name failures, too.
__________________
Dell Inspiron 2650 w/RT2500 wifi
and a Really Old Desktop machine"




I found that I needed to do:

sudo ln -s /usr/include/python2.7 /usr/include/python


However, this was in CMake for Marsyas, so I actually found that I just needed to manually set the PYTHON_INCLUDE_PATH to /usr/include/phython2.7, because there were two versions of python on my system.