[Numpy-discussion] Help for Windows Python, numpy and f2py
christianson2 at llnl.gov
Tue Jun 20 11:17:20 CDT 2006
I used the Windows installer to install Python 2.4.3 on a late-model Dell
PC running XP Pro. Then I installed numpy-0.9.8 and scipy-0.4.9, also from
the Windows installers. Now I am trying to build a dll file for a Fortran
77 file and previously-generated (Linux) pyf file. I installed MinGW from
the MinGW 5.0.2 Windows installer, and modified my Windows path to put the
MinGW directory before a pre-existing Cygwin installation. However, both a
setup.py file and running the C:\python2.4.3\Scripts\f2py.py file in the
Windows command line fail with the message that the .NET Framework SDK has
to be initialized or that the msvccompiler cannot be found.
Any advice on what I'm missing would be much appreciated! Here is the
message I get trying to run f2py:
2py.py -c --fcompiler=g77 mars.pyf mars.f>errors
error: The .NET Framework SDK needs to be installed before building
Unknown vendor: "g77"
building extension "mars" sources
f2py options: 
Reading fortran codes...
Reading file 'mars.pyf' (format:free)
copying C:\python2.4.3\lib\site-packages\numpy\f2py\src\fortranobject.c ->
copying C:\python2.4.3\lib\site-packages\numpy\f2py\src\fortranobject.h ->
No module named msvccompiler in numpy.distutils, trying from distutils..
Thanks in advance,
More information about the Numpy-discussion