[f2py] how to configure f2py on windows XP?
Pearu Peterson
pearu.peterson at gmail.com
Thu Jul 30 13:27:16 EEST 2009
ian wrote:
> Dear Pearu,
>
> Someone told me to install python2.6. I installed python-2.6.2.msi + numpy-1.3.0-win32-superpack-python2.6.exe + gfortran-windows.exe on my computer. Following http://www.scipy.org/F2PY_Windows , I write:
>
Python 2.6 is fine.
> python c:\python26\scripts\f2py.py -c --fcompiler=gnu95 --compiler=mingw32 -lmsvcr71 -m foo foo.f90
However, check that msvcr71 library exists in your system (you might
need to change the last 2 digits..).
> the result is :
> 'import site' failed; use -v for traceback
> Trackback (most recent call last):
> File "c:\python26\scripts\f2py.py", line 3, in <module>
> import os,sys
> ImportError: No module named os
I have no idea why you get this error but it seems to
be your python (installation?) issue rather than an f2py issue.
Pearu
More information about the f2py-users
mailing list