[f2py] using f2py without Numeric

pearu at cens.ioc.ee pearu at cens.ioc.ee
Mon Oct 3 08:30:31 EEST 2005



On Sun, 2 Oct 2005, Chris Fonnesbeck wrote:

> Can f2py be used *only* with numarray? I have installed it with on my
> numarray on my system, but get the following error when I try to use
> it:
> 
> Oliver:/usr/local/src/PyMC/PyMC chris$ f2py -c -m flib flib.f
...
> ImportError: Must have Numeric installed.

You need to specify -DNUMARRAY in f2py comman line to build extension
modules against numarray. So, try

  f2py -c -m flib flib.f -DNUMARRAY

Pearu




More information about the f2py-users mailing list