Python 2.7 Theano Windows 7导入错误

Python 2.7 Theano Windows 7导入错误,python-2.7,theano,theano-cuda,Python 2.7,Theano,Theano Cuda,今天我尝试在W7 x64上安装Theano。我想是我安装的,但我在某个地方也犯了一个错误,我不知道在哪里。我真的想把它和CUDA一起使用 以下是我安装的程序: Anaconda 4.2.0 x64(Python 2.7.12), TDM GCC, CUDA 8.0 Visual Studio 13 Theano via Git 以下是TheAnoc文件: 就像我说的,我不知道我在哪里犯了错误。这是我写“import theano”时的输出 提前谢谢各位 In [2]: import theano

今天我尝试在W7 x64上安装Theano。我想是我安装的,但我在某个地方也犯了一个错误,我不知道在哪里。我真的想把它和CUDA一起使用

以下是我安装的程序: Anaconda 4.2.0 x64(Python 2.7.12), TDM GCC, CUDA 8.0 Visual Studio 13 Theano via Git

以下是TheAnoc文件:

就像我说的,我不知道我在哪里犯了错误。这是我写“import theano”时的输出

提前谢谢各位

In [2]: import theano
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-2-3397704bd624> in <module>()
----> 1 import theano

C:\Users\silverstone\Theano\theano\__init__.py in <module>()
     64     object2, utils)
     65
---> 66 from theano.compile import (
     67     SymbolicInput, In,
     68     SymbolicOutput, Out,

C:\Users\silverstone\Theano\theano\compile\__init__.py in <module>()
      8         SpecifyShape, specify_shape, register_specify_shape_c_code)
      9
---> 10 from theano.compile.function_module import *
     11
     12 from theano.compile.mode import *

C:\Users\silverstone\Theano\theano\compile\function_module.py in <module>()
     16
     17 import theano
---> 18 from theano import config, gof
     19 from theano.compat import izip
     20 from theano.gof import graph

ImportError: cannot import name gof
[2]中的
:导入编号
---------------------------------------------------------------------------
ImportError回溯(最近一次呼叫最后一次)
在()
---->1进口西亚诺
C:\Users\silverstone\Theano\Theano\\uuuu init\uuuuuu.py in()
64对象(2,UTIL)
65
--->66从theano.compile导入(
67.把,
68.coutput,Out,
C:\Users\silverstone\Theano\Theano\compile\\uuuu init\uuuuu.py in()
8指定形状、指定形状、寄存器指定形状、c代码)
9
--->10从a No.compile.function\u模块导入*
11
12从theano.compile.mode导入*
C:\Users\silverstone\Theano\Theano\compile\function\u module.py in()
16
17进口西亚诺
--->18从theano导入配置,gof
19来自泰国国际贸易公司进口izip
20来自theano.gof导入图
ImportError:无法导入名称gof

ps:还有一个错误->

您添加了系统变量了吗?如果没有,请尝试以下操作:

右键单击计算机->属性->高级系统设置->环境变量

添加新的系统变量

Name=THEANO_标志

Value=floatX=float32,device=gpu,nvcc.fastmath=True

还将VisualStudio的C++编译器添加到路径

添加;路径到您的VSInstallation\VC\bin\

如果这不起作用,请去那里,从上面再做一次:

可能存在的副本
In [2]: import theano
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-2-3397704bd624> in <module>()
----> 1 import theano

C:\Users\silverstone\Theano\theano\__init__.py in <module>()
     64     object2, utils)
     65
---> 66 from theano.compile import (
     67     SymbolicInput, In,
     68     SymbolicOutput, Out,

C:\Users\silverstone\Theano\theano\compile\__init__.py in <module>()
      8         SpecifyShape, specify_shape, register_specify_shape_c_code)
      9
---> 10 from theano.compile.function_module import *
     11
     12 from theano.compile.mode import *

C:\Users\silverstone\Theano\theano\compile\function_module.py in <module>()
     16
     17 import theano
---> 18 from theano import config, gof
     19 from theano.compat import izip
     20 from theano.gof import graph

ImportError: cannot import name gof