[f2py] installation problem: Numeric missing

WolfgangZ wollez at gmx.net
Sat Oct 6 11:53:02 EEST 2007


> And f2py is now distributed with numpy, you don't need to install it 
> additionally.

as I wrote in my past messages: installing numpy from the exe gave me 
the error "Numeric missing". Installing with easy_install works better.

I used the "hello world" example to test f2py:
	f2py.py -c mingw32 hallo.f90

output:
C:\Documents and Settings\s016\Desktop\fenpy>f2py.py -c mingw32 hallo.f90
running build
running config_cc
unifing config_cc, config, build_clib, build_ext, build commands 
--compiler opti
ons
running config_fc
unifing config_fc, config, build_clib, build_ext, build commands 
--fcompiler opt
ions
running build_src
building extension "untitled" sources
f2py options: []
f2py:> c:\temp\temp\tmpg2akwa\src.win32-2.5\untitledmodule.c
creating c:\temp\temp\tmpg2akwa
creating c:\temp\temp\tmpg2akwa\src.win32-2.5
Reading fortran codes...
         Reading file 'hallo.f90' (format:free)
Post-processing...
         Block: untitled
                         Block: foo
Post-processing (stage 2)...
Building modules...
         Building module "untitled"...
                 Constructing wrapper function "foo"...
                   foo(a)
         Wrote C/API module "untitled" to file 
"c:\temp\temp\tmpg2akwa\src.win32-
2.5/untitledmodule.c"
   adding 'c:\temp\temp\tmpg2akwa\src.win32-2.5\fortranobject.c' to sources.
   adding 'c:\temp\temp\tmpg2akwa\src.win32-2.5' to include_dirs.
copying 
D:\Programme\python2.5.1\lib\site-packages\numpy-1.0.3.1-py2.5-win32.egg
\numpy\f2py\src\fortranobject.c -> c:\temp\temp\tmpg2akwa\src.win32-2.5
copying 
D:\Programme\python2.5.1\lib\site-packages\numpy-1.0.3.1-py2.5-win32.egg
\numpy\f2py\src\fortranobject.h -> c:\temp\temp\tmpg2akwa\src.win32-2.5
running build_ext
No module named msvccompiler in numpy.distutils, trying from distutils..
error: Python was built with Visual Studio 2003;
extensions must be built with a compiler than can generate compatible 
binaries.
Visual Studio 2003 was not found on this system. If you have Cygwin 
installed,
you can try compiling with MingW32, by passing "-c mingw32" to setup.py.




More information about the f2py-users mailing list