2015-09-04 81 views
2

我想在Windows上使用python 3.4安装theano。我下面这个指令Theano on WindowsTheano没有在Windows上运行

它创建一个文件名为Theano.egg链接内蟒蛇库/站点包

但试图调用进口theano

当我得到这个错误

enter image description here

我用python setup.py develop,它给了我这个窗口。这表明一切安装正常。任何帮助?

enter image description here

+0

你是什么时候下载theano的?这个错误是不是在github当前版本 –

+0

@TimCastelijns我刚刚下载theano ..使用'git克隆https://github.com/Theano/Theano.git --branch rel-0.7'评论 – jquery404

回答

3

这很可能是由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 
+0

我试图按照你在这里发布的链接。但仍然没有运气 以前我试过'git克隆https://github.com/Theano/Theano.git - 分支rel-0.7代码' 它似乎你的链接也包含相同的版本 – jquery404

+0

btw下载后回购我键入'python setup.py develop' – jquery404

+0

@ jquery404我想你可以在'theano \ theano \'中手动编辑'__init __。py',并将'e0:'改为'as e0:'来修复语法错误 –

相关问题