You probably have many Theano installed. Uninstall all of them. Try to import theano. Make sure Theano isn't found, then reinstall it.
Frédéric On Sat, Sep 2, 2017 at 10:49 AM <zkawa...@gmail.com> wrote: > Hi, > I have installed Theano for first time when I import it will always throw > the following error. I have also tried updating six manually, that didn't > help. I have searched a lot about it but couldn't find a solution yet. Any > help will be appreciated. > > > from theano import * > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > File "/usr/local/lib/python2.7/dist-packages/theano/__init__.py", line > 80, in <module> > from theano.scan_module import (scan, map, reduce, foldl, foldr, clone, > File > "/usr/local/lib/python2.7/dist-packages/theano/scan_module/__init__.py", > line 41, in <module> > from theano.scan_module import scan_opt > File > "/usr/local/lib/python2.7/dist-packages/theano/scan_module/scan_opt.py", > line 60, in <module> > from theano import tensor, scalar > ImportError: cannot import name tensor > > > -- > > --- > You received this message because you are subscribed to the Google Groups > "theano-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to theano-users+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- --- You received this message because you are subscribed to the Google Groups "theano-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to theano-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.