How to resolve the following error in Theano?

I work with Anaconda Python distribution and am currently running an Ipython notebook.After successfully installing Theano,am getting the following error:

In [5]:import theano.tensor as T
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-5-1c1a5188cff0> in <module>()
----> 1 import theano.tensor as T

C:UsersBlueAnacondalibsite-packagestheano__init__.py in <module>()
 66 from theano.printing import pprint, pp
 67 
---> 68 from theano.scan_module import scan, map, reduce, foldl, foldr, clone
 69 
 70 from theano.updates import OrderedUpdates

C:UsersBlueAnacondalibsite-packagestheanoscan_module__init__.py in <module>()
 39 __contact__ = "Razvan Pascanu <r.pascanu@gmail>"
 40 
---> 41 from theano.scan_module import scan_opt
 42 from theano.scan_module.scan import scan
 43 from theano.scan_module.scan_views import map, reduce, foldl, foldr

C:UsersBlueAnacondalibsite-packagestheanoscan_modulescan_opt.py in <module>()
 63 
 64 import theano
---> 65 from theano import tensor
 66 from theano.tensor import opt, get_scalar_constant_value
 67 from theano import gof

C:UsersBlueAnacondalibsite-packagestheanotensor__init__.py in <module>()
  5 
  6 from theano.tensor.basic import *
----> 7 from theano.tensor.subtensor import *
  8 from theano.tensor.type_other import *
  9 from theano.tensor.var import (

C:UsersBlueAnacondalibsite-packagestheanotensorsubtensor.py in <module>()
 12 import theano
 13 from theano.gradient import DisconnectedType
---> 14 from theano import gof
 15 from theano.gof import Apply, Constant, hashtype, Op, Type, MethodNotDefined
 16 from theano.compat.python2x import maxsize

ImportError: cannot import name gof

Have installed theano using the normal command:

pip install Theano

Also the bleeding edge one:

pip install --upgrade --no-deps git+git://github.com/Theano/Theano.git 

But to no avail.Am still getting the same above error.


Source: python

Leave a Reply