16 Sep 09

I was struggling due to this problem for two days now and got the solution just now so thought I will share it
with you all; as I don’t want anyone else to land up in trouble as i did so I am using Hardy and was trying to build subvertpy from source as the package was not available for same.

The problem occurs due to absence of Python development headers as many python modules have dependency onĀ  Python development headers to compile.

Solution is to install development headers using package manager; open the terminal and issue the following commands

sudo apt-cache search python

and select the package that matches your installation as in my case it is python2.5-dev; issue the following command to install it

sudo apt-get install python2.5-dev

This will install development headers in /usr/include/python2.5 and now you can build your python module successfully.


Filed under: OpenSource

Trackback Uri


10 Comments.

  • nata says:

    Thank you very much!
    I was upgrading twisted to 9.0.0 with easy_install utility in Ubuntu 9.0 and came across the same problem.
    Installing python2.6-dev solved it.

  • I am glad that it helped you.

  • tghasd says:

    Very helpful, thanks!

  • Shariq says:

    I am Suse LINUX (11.1)
    And when I am including
    #include
    its not able to find this library.

    The above help does’nt work in SUSE LINUX.
    Please help .

    Thanks
    Shariq

  • Shariq says:

    I am Suse LINUX (11.1)
    And when I am including
    #include<Python.h>
    its not able to find this library.

    The above help does\’nt work in SUSE LINUX.
    Please help .

    Thanks
    Shariq

  • Shariq says:

    I am Suse LINUX (11.1)
    And when I am including
    #include&lt;Python.h&gt;
    its not able to find this library.

    The above help does\\\’nt work in SUSE LINUX.
    Please help .

    Thanks
    Shariq

  • Shariq says:

    I am Suse LINUX (11.1)
    And when I am including
    #include&amp;lt;Python.h&amp;gt;
    its not able to find this library.

    The above help does\\\\\\\’nt work in SUSE LINUX.
    Please help .

    Thanks
    Shariq

  • Shariq says:

    I am Suse LINUX (11.1)
    And when I am including
    #include Python.h
    its not able to find this library.

    The above help does not work in SUSE LINUX.
    Please help .

    Thanks
    Shariq

  • Do you have the python-devel package installed on your machine?

  • Rob says:

    Thanks so much!



Leave a Comment

Security Code: