[f2py] Has ANYBODY gotten f2py working with Python 2.6 on Mac OS 10.6?

Trond Kristiansen trond.kristiansen at imr.no
Thu Apr 1 11:56:46 EEST 2010


Hi Raymond.

I am not sure if this will help you but remember to set these exports in your .profile (or .bash_profile) so that 
your system recognizes your setup with intel fortran compiler:

export F77="ifort"
export F90="ifort"

And also add this line to your .profile: source /opt/intel/fce/10.1.007/bin/ifortvars.sh

This should make your system see your compiler. However, remember that the "fce" version of the compiler is
the 64-bit version so for f2py to compile with that version you need to use "intelem" (64-bit) instead of "intel" (32-bit):

For example:
f2py --verbose --fcompiler=intelem -c -m barotropic barotropic.f90

Cheers, Trond


More information about the f2py-users mailing list