我正在尝试使用 python 3.4 在 Windows 上安装 theano。我正在遵循此说明 Theano on Windows
它在 python Lib/site-packages 中创建一个名为 Theano.egg-link 的文件
但我在尝试调用 import theano 时收到此错误
我使用了python setup.pydevelopment
,它给了我这个窗口。这表明一切安装正常。有什么帮助吗?
最佳答案
这很可能可以通过 redownloading the theano project 来修复。
如您所见here ,导致该错误的代码不再存在于当前代码库中。现在看起来像这样
def dot(l, r):
"""Return a symbolic matrix/dot product between l and r """
rval = NotImplemented
e0, e1 = None, None
if rval == NotImplemented and hasattr(l, '__dot__'):
try:
rval = l.__dot__(r)
except Exception as e0:
rval = NotImplemented
if rval == NotImplemented and hasattr(r, '__rdot__'):
try:
rval = r.__rdot__(l)
except Exception as e1:
rval = NotImplemented
if rval == NotImplemented:
raise NotImplementedError("Dot failed for the following reasons:",
(e0, e1))
return rval
关于python - Theano 无法在 Windows 上运行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32397226/