Theano ImportError和进程编译时的警告功能

时间:2015-07-31 16:25:52

标签: theano

我在Windows上使用Anaconda运行Theano。我几乎遵循了评论here中的步骤。我可以毫无问题地导入theano:

import theano
from theano import tensor as T
x = T.vector('x')
W = T.matrix('W')
dot = T.dot(x, W)

这很好用。但是当我做的时候

f = theano.function(inputs=[x, W], outputs=dot)

我收到警告:

WARNING (theano.gof.compilelock): Overriding existing lock by dead process '4844' (I am process '3908')
WARNING:theano.gof.compilelock:Overriding existing lock by dead process '4844' (I am process '3908')

和一个长错误,以:

结束
ImportError: ('The following error happened while compiling the node', CGemv{inplace}(AllocEmpty{dtype='float64'}.0, TensorConstant{1.0}, W.T, x, TensorConstant{0.0}), '\n', 'DLL load failed: The specified module could not be found.', '[CGemv{inplace}(<TensorType(float64, vector)>, TensorConstant{1.0}, W.T, x, TensorConstant{0.0})]')

有关如何解决此问题的任何想法?

1 个答案:

答案 0 :(得分:1)

Windows上的Theano需要Theano开发版本而不是Theano版本:

http://deeplearning.net/software/theano/install.html#bleeding-edge-install-instructions

所以只需更新Theano就可以了。