On 9/8/2011 10:44 AM, "V. Armando Solé" wrote: > On 08/09/2011 16:16, Jim Vickroy wrote: >> On 9/8/2011 6:09 AM, "V. Armando Solé" wrote: >>> Have you tried to install Visual Studio 2008 Express edition (plus the >>> windows SDK to be able to compile 64 bit code)? >>> >>> Armando >> Armando, "Visual Studio 2008 Professional" is installed on the computer >> as well as "Intel Visual Fortran Composer XE 2011". >> >> f2py was not finding the Intel compiler (f2py -c --help-fcompiler) so I >> tried gfortran. >> >> The "Win64" reference, in the Exception, is puzzling to me since this is >> a 32-bit computer. >> > Oh! I totally misunderstood the situation. I thought the problem was the > missing compiler. > > All what I do with python and the intel fortran compiler is to compile > numpy. Just in case it helps you, I set my environment from the console > by running a bat file with the following content (I am on 64 bit but you > could easily tailor it to your needs): > > "C:\Program Files\Microsoft SDKs\Windows\v7.0\Setup\WindowsSdkVer.exe" > -version:v7.0 > call "C:\Program Files (x86)\Microsoft Visual Studio > 9.0\VC\bin\vcvars64.bat" > call "C:\Program Files > (x86)\Intel\ComposerXE-2011\bin\ipsxe-comp-vars.bat" intel64 vs2008shell > rem call "C:\Program Files (x86)\Microsoft Visual Studio > 9.0\VC\bin\vcvars64" > rem call "C:\Program Files\Microsoft SDKs\Windows\v7.0\Bin\setenv.cmd" > /x64 /Release > set PATH=C:\Python27;C:\Python27\Scripts;%PATH% > set PATH="C:\Program Files > (x86)\Intel\ComposerXE-2011\redist\intel64\mkl";"C:\Program Files > (x86)\Intel\ComposerXE-2011\mkl\lib\intel64";%PATH% > > Perhaps that helps you to set a working environment. All what I can tell > you is that with that environment, if I run "python f2py.py -c > --help-fcompiler" it finds the intel compiler. > > Good luck, > > Armando
Thanks for the suggestion. So far I have not been able to modify the above for use on my 32-bit machine such that ifort is found by f2py. From the f2py documentation, I assumed this was going to be rather straightforward, but it is not. > > > _______________________________________________ > NumPy-Discussion mailing list > NumPy-Discussion@scipy.org > http://mail.scipy.org/mailman/listinfo/numpy-discussion _______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion