python - Theano 无法在 Windows 上运行

标签 python theano deep-learning

我正在尝试使用 python 3.4 在 Windows 上安装 theano。我正在遵循此说明 Theano on Windows

它在 python Lib/site-packages 中创建一个名为 Theano.egg-link 的文件

但我在尝试调用 import theano 时收到此错误

enter image description here

我使用了python setup.pydevelopment,它给了我这个窗口。这表明一切安装正常。有什么帮助吗?

enter image description here

最佳答案

这很可能可以通过 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/

相关文章:

machine-learning - Caffe:如果内存中只能容纳一小部分怎么办?

python - 如何在 Pandas/Dask 中按具有可变 bin 的列离散化大数据帧

python - 将展平的一维索引转换为二维索引

theano - 安装 pylearn2 - ImportError : No module named six. 移动

python - keras 中的 1d CNN 音频

python - 使用OpenCV检测图像中的盒子

python - 为什么 Python 的 Numpy zeros 和空函数之间的速度差异对于更大的数组大小消失了?

python - matplotlib 3D 散点图,标记颜色对应于 RGB 值

python - theano 张量的 pdist

installation - 有没有办法在没有 Nvidia 的情况下安装 Theano