f2py findet ifort, benutzt ihn aber nicht.
Verfasst: Sonntag 8. Dezember 2019, 11:14
Liebe Community,
Nachdem ich mit Fortran 95 angefangen habe, wollte ich nun eigentlich mit f2py herumprobieren, um einige Algorithmen zu beschleunigen.
Das OS ist macOS High Sierra. NumPy verwende ich schon länger und Fortran seit Kurzem.
Wenn ich f2py auf mein Script anwenden will, kommt eine ambigue Fehlermeldung.
Als Compiler ist ifort von Intel installiert, den benutze ich sonst auch. Der Intel-C++-Compiler ist ebenfalls installiert.
Das ist strange. Zunächst sagt die Ausgabe, dass er den Intel-Fortran-Compiler gefunden hätte.
Anschließend heißt es dennoch, dass kein Fortran-Compiler gefunden worden wäre.
Hat jemand eine Idee?
Nachdem ich mit Fortran 95 angefangen habe, wollte ich nun eigentlich mit f2py herumprobieren, um einige Algorithmen zu beschleunigen.
Das OS ist macOS High Sierra. NumPy verwende ich schon länger und Fortran seit Kurzem.
Wenn ich f2py auf mein Script anwenden will, kommt eine ambigue Fehlermeldung.
Als Compiler ist ifort von Intel installiert, den benutze ich sonst auch. Der Intel-C++-Compiler ist ebenfalls installiert.
Code: Alles auswählen
customize Gnu95FCompiler
Could not locate executable gfortran
Could not locate executable f95
customize NAGFCompiler
customize AbsoftFCompiler
Could not locate executable f90
Could not locate executable f77
customize IBMFCompiler
Could not locate executable xlf90
Could not locate executable xlf
customize IntelFCompiler
Found executable /usr/local/bin/ifort
Intel(R) Fortran Intel(R) 64 Compiler for applications running on Intel(R) 64, Version 19.0.5.281 Build 20190816
Copyright (C) 1985-2019 Intel Corporation. All rights reserved.
customize GnuFCompiler
Could not locate executable g77
customize G95FCompiler
Could not locate executable g95
customize PGroupFCompiler
Could not locate executable pgfortran
don't know how to compile Fortran code on platform 'posix'
warning: build_ext: f77_compiler=None is not available.
building 'sieve' extension
error: extension 'sieve' has Fortran sources but no Fortran compiler found
Anschließend heißt es dennoch, dass kein Fortran-Compiler gefunden worden wäre.
Hat jemand eine Idee?