Python — Theano не может найти переполнение lstdStack

Я использовал anaconda2 для установки mingw и libpython, после чего я тестировал запуск Theano, выполняя импорт theano на IDLE, к сожалению, я обнаружил ошибку, сообщающую, что некоторые файлы не найдены.

Я пошел по пути к файлу C: \ Anaconda2 \ MinGW \ x86_64-w64-mingw32 \ lib и обнаружил, что такого файла с именем -lstdc ++ действительно нет, но есть libstdc ++. A, libmingw32.a, libgcc_s.a и остальные. , есть только один файл, который я не могу найти, и это lgcc.a или libgcc.a.

Я подозреваю, что мне нужно удалить мой Theano и переустановить версию Bleeding Edge, но я хотел бы спросить, можно ли решить эту проблему даже без установки версии Bleeding Edge? Или это действительно нужно?

Вот обратная связь:

   Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
import theano
File "C:\Python27\lib\site-packages\theano-0.9.0.dev2-py2.7.egg\theano\__init__.py", line 70, in <module>
from theano.compile import (
File "C:\Python27\lib\site-packages\theano-0.9.0.dev2-py2.7.egg\theano\compile\__init__.py", line 10, in <module>
from theano.compile.function_module import *
File "C:\Python27\lib\site-packages\theano-0.9.0.dev2-py2.7.egg\theano\compile\function_module.py", line 21, in <module>
import theano.compile.mode
File "C:\Python27\lib\site-packages\theano-0.9.0.dev2-py2.7.egg\theano\compile\mode.py", line 12, in <module>
import theano.gof.vm
File "C:\Python27\lib\site-packages\theano-0.9.0.dev2-py2.7.egg\theano\gof\vm.py", line 654, in <module>
from . import lazylinker_c
File "C:\Python27\lib\site-packages\theano-0.9.0.dev2-py2.7.egg\theano\gof\lazylinker_c.py", line 127, in <module>
preargs=args)
File "C:\Python27\lib\site-packages\theano-0.9.0.dev2-py2.7.egg\theano\gof\cmodule.py", line 2299, in compile_str
(status, compile_stderr.replace('\n', '. ')))
Exception: Compilation failed (return status=1): c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\Python27\libs/libpython27.a when searching for -lpython27
. c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/lib/libstdc++.dll.a when searching for -lstdc++
. c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/lib/libstdc++.a when searching for -lstdc++
. c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/lib\libstdc++.a when searching for -lstdc++
. c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/lib/libstdc++.dll.a when searching for -lstdc++
. c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/lib/libstdc++.a when searching for -lstdc++
. c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lstdc++
. c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lmingw32
. c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/lib/libgcc_s.a when searching for -lgcc_s
. c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/lib\libgcc_s.a when searching for -lgcc_s
. c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/lib/libgcc_s.a when searching for -lgcc_s
. c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lgcc_s
. c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/libgcc.a when searching for -lgcc
. c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0\libgcc.a when searching for -lgcc
. c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/libgcc.a when searching for -lgcc
. c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lgcc
. c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/lib/libmoldname.a when searching for -lmoldname
. c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/lib\libmoldname.a when searching for -lmoldname
. c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/lib/libmoldname.a when searching for -lmoldname
. c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lmoldname
. c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/lib/libmingwex.a when searching for -lmingwex
. c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/lib\libmingwex.a when searching for -lmingwex
. c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/lib/libmingwex.a when searching for -lmingwex
. c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lmingwex
. c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/lib/libmsvcrt.a when searching for -lmsvcrt
. c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/lib\libmsvcrt.a when searching for -lmsvcrt
. c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/lib/libmsvcrt.a when searching for -lmsvcrt
. c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lmsvcrt
. c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/lib/libadvapi32.a when searching for -ladvapi32
. c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/lib\libadvapi32.a when searching for -ladvapi32
. c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/lib/libadvapi32.a when searching for -ladvapi32
. c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -ladvapi32
. c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/lib/libshell32.a when searching for -lshell32
. c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/lib\libshell32.a when searching for -lshell32
. c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/lib/libshell32.a when searching for -lshell32
. c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lshell32
. c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/lib/libuser32.a when searching for -luser32
. c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/lib\libuser32.a when searching for -luser32
. c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/lib/libuser32.a when searching for -luser32
. c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -luser32
. c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/lib/libkernel32.a when searching for -lkernel32
. c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/lib\libkernel32.a when searching for -lkernel32
. c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/lib/libkernel32.a when searching for -lkernel32
. c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lkernel32
. c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lmingw32
. c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/lib/libgcc_s.a when searching for -lgcc_s
. c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/lib\libgcc_s.a when searching for -lgcc_s
. c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/lib/libgcc_s.a when searching for -lgcc_s
. c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lgcc_s
. c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/libgcc.a when searching for -lgcc
. c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0\libgcc.a when searching for -lgcc
. c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/libgcc.a when searching for -lgcc
. c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lgcc
. c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/lib/libmoldname.a when searching for -lmoldname
. c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/lib\libmoldname.a when searching for -lmoldname
. c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/lib/libmoldname.a when searching for -lmoldname
. c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lmoldname
. c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/lib/libmingwex.a when searching for -lmingwex
. c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/lib\libmingwex.a when searching for -lmingwex
. c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/lib/libmingwex.a when searching for -lmingwex
. c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lmingwex
. c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/lib/libmsvcrt.a when searching for -lmsvcrt
. c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/lib\libmsvcrt.a when searching for -lmsvcrt
. c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/lib/libmsvcrt.a when searching for -lmsvcrt
. c:/anaconda2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lmsvcrt
. collect2.exe: error: ld returned 1 exit status

После переустановки Anaconda на 32-битных окнах я вижу ошибку:

Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
import theano
File "C:\Python27\lib\site-packages\theano-0.9.0.dev2-py2.7.egg\theano\__init__.py", line 70, in <module>
from theano.compile import (
File "C:\Python27\lib\site-packages\theano-0.9.0.dev2-py2.7.egg\theano\compile\__init__.py", line 10, in <module>
from theano.compile.function_module import *
File "C:\Python27\lib\site-packages\theano-0.9.0.dev2-py2.7.egg\theano\compile\function_module.py", line 21, in <module>
import theano.compile.mode
File "C:\Python27\lib\site-packages\theano-0.9.0.dev2-py2.7.egg\theano\compile\mode.py", line 12, in <module>
import theano.gof.vm
File "C:\Python27\lib\site-packages\theano-0.9.0.dev2-py2.7.egg\theano\gof\vm.py", line 654, in <module>
from . import lazylinker_c
File "C:\Python27\lib\site-packages\theano-0.9.0.dev2-py2.7.egg\theano\gof\lazylinker_c.py", line 127, in <module>
preargs=args)
File "C:\Python27\lib\site-packages\theano-0.9.0.dev2-py2.7.egg\theano\gof\cmodule.py", line 2299, in compile_str
(status, compile_stderr.replace('\n', '. ')))
Exception: Compilation failed (return status=1): C:\Python27\libs/libpython27.a(dmmes00245.o):(.idata$7+0x0): undefined reference to `__head_C__build27_cpython_PCBuild_libpython27_a'
. C:\Python27\libs/libpython27.a(dmmes00223.o):(.idata$7+0x0): undefined reference to `__head_C__build27_cpython_PCBuild_libpython27_a'
. C:\Python27\libs/libpython27.a(dmmes00054.o):(.idata$7+0x0): undefined reference to `__head_C__build27_cpython_PCBuild_libpython27_a'
. C:\Python27\libs/libpython27.a(dmmes01026.o):(.idata$7+0x0): undefined reference to `__head_C__build27_cpython_PCBuild_libpython27_a'
. C:\Python27\libs/libpython27.a(dmmes00253.o):(.idata$7+0x0): undefined reference to `__head_C__build27_cpython_PCBuild_libpython27_a'
. C:\Python27\libs/libpython27.a(dmmes00207.o):(.idata$7+0x0): more undefined references to `__head_C__build27_cpython_PCBuild_libpython27_a' follow
. collect2.exe: error: ld returned 1 exit status

0

Решение

Точное сообщение:

skipping incompatible .../libstdc++.dll.a when searching for -lstdc++
etc..

Я тоже вижу, что ищу user32 а также kernel32Тем не менее, очевидно, что набор инструментов настроен для x86_64-w64-mingw32,

Вы пытаетесь скомпилировать Theano для 32-битной системы, используя 64-битный набор инструментов? Вы должны проверить флаги вашего компилятора.

0

Другие решения

Наконец, после переустановки mingw и libpython в Anaconda в 32-битных окнах все решается путем обновления до последней версии. Я обновил мой с 2.7.10 до 2.7.12.

Примечание. Не забудьте поместить папку Anaconda2 в переменную PATH в переменную среду.

0

По вопросам рекламы [email protected]