我在PyCharm中设置了一个使用Theano导入的项目。 我相信我已经完成了Theano安装指南中的所有步骤,并在Project Interpreter(Theano 0.7.0,numpy 1.9.2和scipu 0.14.0等)中包含了必要的库。
然而,在编译时我收到以下错误:
Problem occurred during compilation with the command line below:
C:\TDM-GCC-64\bin\g++.exe -shared -g -march=ivybridge -mmmx -mno-3dnow -msse -msse2 -msse3 -mssse3 -mno-sse4a -mcx16 -msahf -mno-movbe -maes -mno-sha -mpclmul -mpopcnt -mno-abm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-bmi2 -mno-tbm -mavx -mno-avx2 -msse4.2 -msse4.1 -mno-lzcnt -mno-rtm -mno-hle -mrdrnd -mf16c -mfsgsbase -mno-rdseed -mno-prfchw -mno-adx -mfxsr -mxsave -mxsaveopt -mno-avx512f -mno-avx512er -mno-avx512cd -mno-avx512pf -mno-prefetchwt1 -mno-clflushopt -mno-xsavec -mno-xsaves -mno-avx512dq -mno-avx512bw -mno-avx512vl -mno-avx512ifma -mno-avx512vbmi -mno-clwb -mno-pcommit --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=8192 -mtune=ivybridge -D NPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION -m32 -IC:\Python27\lib\site-packages\numpy\core\include -IC:\Python27\include -Ic:\theano-master\theano\gof -o C:\Users\jlhag_000\AppData\Local\Theano\compiledir_Windows-8-6.2.9200-Intel64_Family_6_Model_58_Stepping_9_GenuineIntel-2.7.10-32\lazylinker_ext\lazylinker_ext.pyd C:\Users\jlhag_000\AppData\Local\Theano\compiledir_Windows-8-6.2.9200-Intel64_Family_6_Model_58_Stepping_9_GenuineIntel-2.7.10-32\lazylinker_ext\mod.cpp -LC:\Python27\libs -LC:\Python27 -lpython27
===============================
Traceback (most recent call last):
C:/TDM-GCC-64/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\Python27\libs/libpython27.a when searching for -lpython27
File "C:/Users/jlhag_000/PycharmProjects/TheanoPractice/DBN.py", line 9, in <module>
C:\Python27\libs/python27.lib: error adding symbols: File in wrong format
import theano
collect2.exe: error: ld returned 1 exit status
File "c:\theano-master\theano\__init__.py", line 63, in <module>
from theano.compile import (
File "c:\theano-master\theano\compile\__init__.py", line 9, in <module>
from theano.compile.function_module import *
File "c:\theano-master\theano\compile\function_module.py", line 19, in <module>
import theano.compile.mode
File "c:\theano-master\theano\compile\mode.py", line 10, in <module>
import theano.gof.vm
File "c:\theano-master\theano\gof\vm.py", line 666, in <module>
from . import lazylinker_c
File "c:\theano-master\theano\gof\lazylinker_c.py", line 126, in <module>
preargs=args)
File "c:\theano-master\theano\gof\cmodule.py", line 2059, in compile_str
(status, compile_stderr.replace('\n', '. ')))
.
Process finished with exit code 1
如果有人可以指出我还缺少什么,那将会很感激。