Kann jemand genau feststellen, wo ich falsch mache, BITTE? Ich bin so erschöpft. Ich installierte MinGW 4.7, Python 2.7.8, Numpy 1.7.1 und Scipy0.13.2 zu einer Anaconda (32bit) Umgebung in Windows7.
Auch für Variablen Benutzerumgebung, habe ichkann keine Lösung für die Ausführung von f2py korrekt auf meinem Windows 7 Maschine finden
C_INCLUDE_PATH: D: \ Anaconda2 \ ENVs \ arc103 \ MinGW \ i686-w64-mingw32 \
Pfad (Benutzer variabel) umfassen: C: \ Program Files (x86) \ Microsoft VS Code \ bin; D: \ Anaconda2 \ Library \ bin; D: \ Anaconda2 \ ENVs \ arc103 \ MinGW \ bin
Binden Sie die folgenden Befehle in Anaconda Prompt
"f2py -c --help-fcompiler "Ausgänge" ... Fortran Compilern gefunden: --fcompiler = gnu95 GNU Fortran 95 Compiler (4.7.0) ....“
"f2py -c --help-Compiler" Ausgänge "Liste der verfügbaren Compiler: ...", nicht speziell gefundene Compiler.
Running "f2py -c fib1.f -m FIB1" nach "NumPy v1.12.dev0 Manual" gibt mir viele Fehler wie folgt:
D:\Anaconda2\envs\arc103\Scripts\gfortran.bat -Wall -Wall -shared c:\users\dkim1\appdata\local\temp\tmpvyedhg\Release\users\dkim1\appdata\local\temp\tmpvyedhg\src.win32-.7\fib1module.oc:\users\dkim1\appdata\local\temp\tmpvyedhg\Release\users\dkim1\appdata\local\temp\tmpvyedhg\src.win32-2.7\fortranobject.o c:\users\dkim1\appdata\local\temp\tmpvyedhg\Release\fib1.o -Ld:\anaconda2\envs\arc103\mingw\lib\gcc\i686-w64-mingw32\4.7.0 -LD:\Anaconda2\envs\arc103\libs -LD:\Anaconda2\envs\arc103\PCbuild -lpython27 -lgfortran -o .\fib1.pyd
c:\users\dkim1\appdata\local\temp\tmpvyedhg\Release\users\dkim1\appdata\local\temp\tmpvyedhg\src.win32-2.7\fib1module.o:fib1module.c:(.text+0x35): undefined reference to `__imp__PyNumber_Int'
c:\users\dkim1\appdata\local\temp\tmpvyedhg\Release\users\dkim1\appdata\local\temp\tmpvyedhg\src.win32-2.7\fib1module.o:fib1module.c:(.text+0x68): undefined reference to `__imp__PyComplex_Type'
c:\users\dkim1\appdata\local\temp\tmpvyedhg\Release\users\dkim1\appdata\local\temp\tmpvyedhg\src.win32-2.7\fib1module.o:fib1module.c:(.text+0x79): undefined reference to `__imp__PyType_IsSubtype'
c:\users\dkim1\appdata\local\temp\tmpvyedhg\Release\users\dkim1\appdata\local\temp\tmpvyedhg\src.win32-2.7\fib1module.o:fib1module.c:(.text+0x93): undefined reference to `__imp__PyErr_Occurred'
... (Thousands of "undefined reference to" errors I didn't put it here) ...
collect2.exe: error: ld returned 1 exit statuserror: Command "D:\Anaconda2\envs\arc103\Scripts\gfortran.bat -Wall -Wall -shared c:\users\dkim1\appdata\local\temp\tmpvyedhg\Release\users\dkim1\appdata\local\temp\tmpvyedhg\src.win32-2.7\fib1module.o
c:\users\dkim1\appdata\local\temp\tmpvyedhg\Release\users\dkim1\appdata\local\temp\tmpvyedhg\src.win32-2.7\fortranobject.o
c:\users\dkim1\appdata\local\temp\tmpvyedhg\Release\fib1.o -Ld:\anaconda2\envs\arc103\mingw\lib\gcc\i686-w64-mingw32\4.7.0 -LD:\Anaconda2\envs\arc103\libs
-LD:\Anaconda2\envs\arc103\PCbuild -lpython27 -lgfortran -o .\fib1.pyd" failed with exit status 1
Sorry für die Verwirrung. Ich habe fast ein paar Monate damit verbracht, den Fix herauszufinden, aber es ist zu schwer für mich und alles vergebens. Es wäre sehr geschätzt, wenn Sie mir helfen können. Vielen Dank.
Können Sie die volle Leistung abgeben.? (natürlich ohne die "undefined reference to" -Fehler) –