Re: [f2py] ubuntu 9.10 and python 2.6.4 problem

Pearu Peterson <[email protected]>
Newsgroups gmane.comp.python.f2py.user
Message-ID <[email protected]>
Lazlo wrote:
> Hi,
> 
> I ran f2py successfully under Redhat and Snow Leopard under python 2.5.4, but I
> am not able too run it correctly under Ubuntu 9.10 and python 2.6.4.
> Sorry if it is an obvious error but I am new at this. It seems to use the right
> fortran compiler (I tried --fcompiler=gnu95 and obtained the same errors).
> Thanks for any help.
> 
> Lazlo
> 
> Here is the partial output for the ZADD test case:
> 
> f2py -c -m add add.f add.pyf
...
> /tmp/tmpCCYAMf/src.linux-i686-2.6/addmodule.c:16:20: error: Python.h: Aucun
> fichier ou dossier de ce type

I can't read French but it seems that you need to install python-dev. 
So, try:
   sudo apt-get install python-dev
and rerun f2py command.

HTH,
Pearu
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.