[pymvpa] Pkg-ExpPsy-PyMVPA Digest, Vol 34, Issue 15

Emanuele Olivetti emanuele at relativita.com
Tue Dec 28 13:52:57 UTC 2010


On 12/28/2010 02:39 PM, Hiroyuki AKAMA wrote:
> Hi!
>
> Perhaps you might want to install Python2.6-dev because the system couldn't find Python.h
> cf.
> http://www.singhvishwajeet.com/2009/09/16/solving-the-build-error-python-h-no-such-file-or-directory-on-ubuntu/
>
>
>>> From: nitish goyal<nitishgoyal.nsit at gmail.com>
>>> Subject: Re: [pymvpa] Pkg-ExpPsy-PyMVPA Digest, Vol 34, Issue 14
>>> To: pkg-exppsy-pymvpa at lists.alioth.debian.org
>>>
>>> compile options: '-I/usr/lib/python2.6/dist-packages/numpy/core/include
>>> -I/usr/include/python2.6 -c'
>>> gcc: mvpa/clfs/libsmlrc/smlr.c
>>> mvpa/clfs/libsmlrc/smlr.c:10:20: error: Python.h: No such file or directory

Exactly. On debian/ubuntu you'd need the python-dev package
which contains the Python development files (headers, e.g. Python.h
which your error message reports, etc.) in order to compile C-like
stuff for Python, like libsvm or smlr.

I am re-reading installation instructions and I can't see this
simple fact mentioned outside the Fedora and OpenSuse specific
sections. It is expected that you need python-dev stuff in order to
install from sources but explicitly mentioning it would be helpful.

I can add that information. Thanks for spotting it :-)

E.




More information about the Pkg-ExpPsy-PyMVPA mailing list