有没有可能是python版本的问题?cmd窗口中是python2.7.13,Spyder版本中是2.7.12
======0408更新======
之前装过python2.7.13,而anaconda自带的python是2.7.12版的,所以我把2.7.13版本的python给卸了。然后再cmd中输入python,再import theano出现了新的错误:
Problem occurred during compilation with the command line below:
"C:MinGWbing++.exe" -shared -g -DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION -m64 -DMS_WIN64 -I"E:Anacondalibsite-packagesnumpycoreinclude" -I"E:Anacondainclude" -I"E:Anacondalibsite-packagestheanogof" -L"E:Anacondalibs" -L"E:Anaconda" -o C:UserszhouyidanAppDataLocalTheanocompiledir_Windows-10-10.0.10586-Intel64_Family_6_Model_94_Stepping_3_GenuineIntel-2.7.12-64lazylinker_extlazylinker_ext.pyd C:UserszhouyidanAppDataLocalTheanocompiledir_Windows-10-10.0.10586-Intel64_Family_6_Model_94_Stepping_3_GenuineIntel-2.7.12-64lazylinker_extmod.cpp -lpython27
C:UserszhouyidanAppDataLocalTheanocompiledir_Windows-10-10.0.10586-Intel64_Family_6_Model_94_Stepping_3_GenuineIntel-2.7.12-64lazylinker_extmod.cpp:1:0: sorry, unimplemented: 64-bit mode not compiled in
#include <Python.h>
^
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "E:Anacondalibsite-packagestheano__init__.py", line 66, in <module>
from theano.compile import (
File "E:Anacondalibsite-packagestheanocompile__init__.py", line 10, in <module>
from theano.compile.function_module import *
File "E:Anacondalibsite-packagestheanocompilefunction_module.py", line 21, in <module>
import theano.compile.mode
File "E:Anacondalibsite-packagestheanocompilemode.py", line 10, in <module>
import theano.gof.vm
File "E:Anacondalibsite-packagestheanogofvm.py", line 662, in <module>
from . import lazylinker_c
File "E:Anacondalibsite-packagestheanogoflazylinker_c.py", line 127, in <module>
preargs=args)
File "E:Anacondalibsite-packagestheanogofcmodule.py", line 2316, in compile_str
(status, compile_stderr.replace('
', '. ')))
Exception: Compilation failed (return status=1): C:UserszhouyidanAppDataLocalTheanocompiledir_Windows-10-10.0.10586-Intel64_Family_6_Model_94_Stepping_3_GenuineIntel-2.7.12-64lazylinker_extmod.cpp:1:0: sorry, unimplemented: 64-bit m. ^include <Python.h>
在Spyder中还是以前的那些错误。。。