在 Windows x64 和 Intel Fortran 中使用 f2py

use*_*252 5 python fortran numpy f2py intel-fortran

我试图通过 Intel Fortran 编译器在 Windows 8、x64 上使用 f2py 来实现。

我尝试过两件事:

1) 通过 Windows 64x 安装程序安装。http://www.lfd.uci.edu/~gohlke/pythonlibs/ NumPy 已正确安装,但执行 f2py -c --help-fcompiler 时未找到编译器 我得到:

Fortran compilers found:
Compilers available for this platform, but not found:
  --fcompiler=absoft    Absoft Corp Fortran Compiler
  --fcompiler=compaqv   DIGITAL or Compaq Visual Fortran Compil
  --fcompiler=g95       G95 Fortran Compiler
  --fcompiler=gnu       GNU Fortran 77 compiler
  --fcompiler=gnu95     GNU Fortran 95 compiler
  --fcompiler=intelem   Intel Fortran Compiler for 64-bit apps
  --fcompiler=intelev   Intel Visual Fortran Compiler for Itani
  --fcompiler=intelv    Intel Visual Fortran Compiler for 32-bi
  --fcompiler=intelvem  Intel Visual Fortran Compiler for 64-bi
Compilers not available on this platform:
  --fcompiler=compaq   Compaq Fortran Compiler
  --fcompiler=hpux     HP Fortran 90 Compiler
  --fcompiler=ibm      IBM XL Fortran Compiler
  --fcompiler=intel    Intel Fortran Compiler for 32-bit apps
  --fcompiler=intele   Intel Fortran Compiler for Itanium apps
  --fcompiler=lahey    Lahey/Fujitsu Fortran 95 Compiler
  --fcompiler=mips     MIPSpro Fortran Compiler
  --fcompiler=nag      NAGWare Fortran 95 Compiler
  --fcompiler=none     Fake Fortran compiler
  --fcompiler=pathf95  PathScale Fortran Compiler
  --fcompiler=pg       Portland Group Fortran Compiler
  --fcompiler=sun      Sun or Forte Fortran 95 Compiler
  --fcompiler=vast     Pacific-Sierra Research Fortran 90 Compi
Run Code Online (Sandbox Code Playgroud)

2)尝试通过以下方式实现手动构建:http://www.scipy.org/scipylib/building/windows.html 在setup.py配置中,我发现可以找到所有库。实现 setup.py install 并实现 numpy.test() 后,我遇到了与上面相同的问题。

任何想法?