[f2py] how to configure f2py on windows XP?

ian liu.ian0571 at gmail.com
Thu Jul 30 13:03:45 EEST 2009


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 c:\python26\scripts\f2py.py -c --fcompiler=gnu95 --compiler=mingw32 -lmsvcr71 -m foo foo.f90 

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

Thanks a lot.
 				
ian
liu.ian0571 at gmail.com
2009-07-30






More information about the f2py-users mailing list