Yaohui WANG
Yaohui WANG

Reputation: 21

AttributeError: module 'theano' has no attribute 'tests'

I am trying to use theano gpu on my ubuntu, but each time after it running one time successfully, it will give me the error like this when I try to run next time. No idea why, could anyone help me ?

import theano Traceback (most recent call last): File "", line 1, in File "/home/sirius/anaconda3/lib/python3.5/site-packages/theano/init.py", line 95, in if hasattr(theano.tests, "TheanoNoseTester"): AttributeError: module 'theano' has no attribute 'tests'

Upvotes: 2

Views: 1091

Answers (2)

Nick
Nick

Reputation: 11

For latest version of Theano (1.04)

import theano generates an error without the nose package installed

install via conda or pip pip install nose / conda install nose

Upvotes: 0

陈昱翔
陈昱翔

Reputation: 1

I met the same problem.I just fix it with conda install nose

Upvotes: 0

Related Questions