ImportError: Version check of the existing lazylinker compiled file. Looking for version 0.211, but found None
ImportError: Version check of the existing lazylinker compiled file. Looking for version 0.211, but found None
C:\Users\meela\Anaconda3\python.exe E:/TTIGAN/test.py
You can find the C code in this temporary file: C:\Users\meela\AppData\Local\Temp\theano_compilation_error_zncbj7_k
Traceback (most recent call last):
File "C:\Users\meela\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:
Traceback (most recent call last):
File "C:\Users\meela\Anaconda3\lib\site-packages\theano\gof\lazylinker_c.py", line 105, 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:
Traceback (most recent call last):
File "E:/TTIGAN/test.py", line 1, in <module>
import skipthoughts
File "E:\TTIGAN\skipthoughts.py", line 6, in <module>
import theano
File "C:\Users\meela\Anaconda3\lib\site-packages\theano\__init__.py", line 110, in <module>
from theano.compile import (
File "C:\Users\meela\Anaconda3\lib\site-packages\theano\compile\__init__.py", line 12, in <module>
from theano.compile.mode import *
File "C:\Users\meela\Anaconda3\lib\site-packages\theano\compile\mode.py", line 11, in <module>
import theano.gof.vm
File "C:\Users\meela\Anaconda3\lib\site-packages\theano\gof\vm.py", line 674, in <module>
from . import lazylinker_c
File "C:\Users\meela\Anaconda3\lib\site-packages\theano\gof\lazylinker_c.py", line 140, in <module>
preargs=args)
File "C:\Users\meela\Anaconda3\lib\site-packages\theano\gof\cmodule.py", line 2388, in compile_str
(status, compile_stderr.replace('\n', '. ')))
.
Process finished with exit code 1
我遇到了同样的问题,给我2天的时间来解决!
它来自路径环境,我在变量中导入了另一个 mingw 路径,我删除了它!
同样的问题,通过在你的 CLI 类型中为 python(在 Windows 上通过 conda)安装一个 mingw-w64 导入库来解决:
conda install -c anaconda libpython
对我有用的解决方案是卸载我的 MinGW gcc 编译器并重新安装最新的 one.确保在测试之前重新启动 CLI。
我的 Mac 也遇到了同样的问题。通过 pip 安装 theano 应该可以解决这个问题。
pip install theano
我有同样的问题,这是由 2014 年的旧版本 anaconda 引起的,我什至忘记了。只需重命名旧目录即可解决问题。
C:\Users\meela\Anaconda3\python.exe E:/TTIGAN/test.py
You can find the C code in this temporary file: C:\Users\meela\AppData\Local\Temp\theano_compilation_error_zncbj7_k
Traceback (most recent call last):
File "C:\Users\meela\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:
Traceback (most recent call last):
File "C:\Users\meela\Anaconda3\lib\site-packages\theano\gof\lazylinker_c.py", line 105, 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:
Traceback (most recent call last):
File "E:/TTIGAN/test.py", line 1, in <module>
import skipthoughts
File "E:\TTIGAN\skipthoughts.py", line 6, in <module>
import theano
File "C:\Users\meela\Anaconda3\lib\site-packages\theano\__init__.py", line 110, in <module>
from theano.compile import (
File "C:\Users\meela\Anaconda3\lib\site-packages\theano\compile\__init__.py", line 12, in <module>
from theano.compile.mode import *
File "C:\Users\meela\Anaconda3\lib\site-packages\theano\compile\mode.py", line 11, in <module>
import theano.gof.vm
File "C:\Users\meela\Anaconda3\lib\site-packages\theano\gof\vm.py", line 674, in <module>
from . import lazylinker_c
File "C:\Users\meela\Anaconda3\lib\site-packages\theano\gof\lazylinker_c.py", line 140, in <module>
preargs=args)
File "C:\Users\meela\Anaconda3\lib\site-packages\theano\gof\cmodule.py", line 2388, in compile_str
(status, compile_stderr.replace('\n', '. ')))
.
Process finished with exit code 1
我遇到了同样的问题,给我2天的时间来解决! 它来自路径环境,我在变量中导入了另一个 mingw 路径,我删除了它!
同样的问题,通过在你的 CLI 类型中为 python(在 Windows 上通过 conda)安装一个 mingw-w64 导入库来解决:
conda install -c anaconda libpython
对我有用的解决方案是卸载我的 MinGW gcc 编译器并重新安装最新的 one.确保在测试之前重新启动 CLI。
我的 Mac 也遇到了同样的问题。通过 pip 安装 theano 应该可以解决这个问题。
pip install theano
我有同样的问题,这是由 2014 年的旧版本 anaconda 引起的,我什至忘记了。只需重命名旧目录即可解决问题。