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 in <module>()
 66 from theano.printing import pprint, pp
---> 68 from theano.scan_module import scan, map, reduce, foldl, foldr, clone
 70 from theano.updates import OrderedUpdates in <module>()
 39 __contact__ = "Razvan Pascanu <r.pascanu@gmail>"
---> 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 in <module>()
 64 import theano
---> 65 from theano import tensor
 66 from theano.tensor import opt, get_scalar_constant_value
 67 from theano import gof in <module>()
  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 ( 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:// 

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

Source: python

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.