详细错误信息:
Traceback (most recent call last):
File "D:\ProgramData\Anaconda3\lib\site-packages\theano\gof\lazylinker_c.py", line 81, in <module>
actual_version, force_compile, _need_reload))
ImportError: Version check of the existing lazylinker compiled file. Looking for version 0.211, but found None. Extra debug information: force_compile=False, _need_reload=True
During handling of the above exception, another exception occurred:
在控制台直接import theano并无报错。google下发现是Anaconda 中缺少mingw 和 libpython。
在执行以下安装命令conda install mingw libpython,anconda会自动安装mingw,和libpython,问题解决。