Error running theano.test() - ImportError: DLL load failed: A dynamic link library (DLL) initialization routine failed
Error running theano.test() - ImportError: DLL load failed: A dynamic link library (DLL) initialization routine failed
我正在尝试在 Windows 10 (x64) 机器上启动 theano 和 运行。
我已经从 WinPython 发行版安装了 Python,theano 已经 运行 附带了。但是在安装了CUDA 8.0.44和MingW之后,在运行 the simple script
时,我不断地得到以下错误
import theano
theano.test()
请注意,我之前有几个警告,我已经解决了(例如,通过从 here 安装丢失的包)。但是这个错误没有给我任何可用的信息。真正奇怪的是,模块名称没有给出缺少 theano 的任何地方。
theano.gof.opt: ERROR: Optimization failure due to: constant_folding
theano.gof.opt: ERROR: node: DimShuffle{x,x}(TensorConstant{1.0})
theano.gof.opt: ERROR: TRACEBACK:
theano.gof.opt: ERROR: Traceback (most recent call last):
File "C:\Programmieren\WinPython-64bit-3.5.2.2\python-3.5.2.amd64\lib\site-packages\theano\gof\opt.py", line 1772, in process_node
replacements = lopt.transform(node)
File "C:\Programmieren\WinPython-64bit-3.5.2.2\python-3.5.2.amd64\lib\site-packages\theano\tensor\opt.py", line 5825, in constant_folding
no_recycling=[])
File "C:\Programmieren\WinPython-64bit-3.5.2.2\python-3.5.2.amd64\lib\site-packages\theano\gof\op.py", line 970, in make_thunk
no_recycling)
File "C:\Programmieren\WinPython-64bit-3.5.2.2\python-3.5.2.amd64\lib\site-packages\theano\gof\op.py", line 879, in make_c_thunk
output_storage=node_output_storage)
File "C:\Programmieren\WinPython-64bit-3.5.2.2\python-3.5.2.amd64\lib\site-packages\theano\gof\cc.py", line 1200, in make_thunk
keep_lock=keep_lock)
File "C:\Programmieren\WinPython-64bit-3.5.2.2\python-3.5.2.amd64\lib\site-packages\theano\gof\cc.py", line 1143, in __compile__
keep_lock=keep_lock)
File "C:\Programmieren\WinPython-64bit-3.5.2.2\python-3.5.2.amd64\lib\site-packages\theano\gof\cc.py", line 1595, in cthunk_factory
key=key, lnk=self, keep_lock=keep_lock)
File "C:\Programmieren\WinPython-64bit-3.5.2.2\python-3.5.2.amd64\lib\site-packages\theano\gof\cmodule.py", line 1142, in module_from_key
module = lnk.compile_cmodule(location)
File "C:\Programmieren\WinPython-64bit-3.5.2.2\python-3.5.2.amd64\lib\site-packages\theano\gof\cc.py", line 1506, in compile_cmodule
preargs=preargs)
File "C:\Programmieren\WinPython-64bit-3.5.2.2\python-3.5.2.amd64\lib\site-packages\theano\gof\cmodule.py", line 2213, in compile_str
return dlimport(lib_filename)
File "C:\Programmieren\WinPython-64bit-3.5.2.2\python-3.5.2.amd64\lib\site-packages\theano\gof\cmodule.py", line 299, in dlimport
rval = __import__(module_name, {}, {}, [module_name])
ImportError: DLL load failed: A dynamic link library (DLL) initialization routine failed.
可能相关的帖子是 Test Optimization failure and Installing theano on windows。
知道如何解决这个问题或找出缺少的 dll 吗?
解决了这个问题,方法是按照 this excellent tutorial(唯一实际有效且最新的方法)在 Windows 机器上本地安装深度学习库。
我正在尝试在 Windows 10 (x64) 机器上启动 theano 和 运行。
我已经从 WinPython 发行版安装了 Python,theano 已经 运行 附带了。但是在安装了CUDA 8.0.44和MingW之后,在运行 the simple script
时,我不断地得到以下错误import theano
theano.test()
请注意,我之前有几个警告,我已经解决了(例如,通过从 here 安装丢失的包)。但是这个错误没有给我任何可用的信息。真正奇怪的是,模块名称没有给出缺少 theano 的任何地方。
theano.gof.opt: ERROR: Optimization failure due to: constant_folding
theano.gof.opt: ERROR: node: DimShuffle{x,x}(TensorConstant{1.0})
theano.gof.opt: ERROR: TRACEBACK:
theano.gof.opt: ERROR: Traceback (most recent call last):
File "C:\Programmieren\WinPython-64bit-3.5.2.2\python-3.5.2.amd64\lib\site-packages\theano\gof\opt.py", line 1772, in process_node
replacements = lopt.transform(node)
File "C:\Programmieren\WinPython-64bit-3.5.2.2\python-3.5.2.amd64\lib\site-packages\theano\tensor\opt.py", line 5825, in constant_folding
no_recycling=[])
File "C:\Programmieren\WinPython-64bit-3.5.2.2\python-3.5.2.amd64\lib\site-packages\theano\gof\op.py", line 970, in make_thunk
no_recycling)
File "C:\Programmieren\WinPython-64bit-3.5.2.2\python-3.5.2.amd64\lib\site-packages\theano\gof\op.py", line 879, in make_c_thunk
output_storage=node_output_storage)
File "C:\Programmieren\WinPython-64bit-3.5.2.2\python-3.5.2.amd64\lib\site-packages\theano\gof\cc.py", line 1200, in make_thunk
keep_lock=keep_lock)
File "C:\Programmieren\WinPython-64bit-3.5.2.2\python-3.5.2.amd64\lib\site-packages\theano\gof\cc.py", line 1143, in __compile__
keep_lock=keep_lock)
File "C:\Programmieren\WinPython-64bit-3.5.2.2\python-3.5.2.amd64\lib\site-packages\theano\gof\cc.py", line 1595, in cthunk_factory
key=key, lnk=self, keep_lock=keep_lock)
File "C:\Programmieren\WinPython-64bit-3.5.2.2\python-3.5.2.amd64\lib\site-packages\theano\gof\cmodule.py", line 1142, in module_from_key
module = lnk.compile_cmodule(location)
File "C:\Programmieren\WinPython-64bit-3.5.2.2\python-3.5.2.amd64\lib\site-packages\theano\gof\cc.py", line 1506, in compile_cmodule
preargs=preargs)
File "C:\Programmieren\WinPython-64bit-3.5.2.2\python-3.5.2.amd64\lib\site-packages\theano\gof\cmodule.py", line 2213, in compile_str
return dlimport(lib_filename)
File "C:\Programmieren\WinPython-64bit-3.5.2.2\python-3.5.2.amd64\lib\site-packages\theano\gof\cmodule.py", line 299, in dlimport
rval = __import__(module_name, {}, {}, [module_name])
ImportError: DLL load failed: A dynamic link library (DLL) initialization routine failed.
可能相关的帖子是 Test Optimization failure and Installing theano on windows。
知道如何解决这个问题或找出缺少的 dll 吗?
解决了这个问题,方法是按照 this excellent tutorial(唯一实际有效且最新的方法)在 Windows 机器上本地安装深度学习库。