ModuleNotFoundError: No module named 'tensorflow.contrib' with jupyter notebook


So this is my error [ModuleNotFoundError: No module named ‘tensorflow.contrib’]

I’m using tensorflow 2.0.0 and python 3.6.9 when i downgrade the tensorflow version of the code doesn’t work when i upgrade it the same thing happens . (i am using jupyter notebook)

I tried to downgrade tensorflow’s version and vice versa .

This is the part of the code where i have the error

Please help i really can’t find a solution.


tensorflow.contrib is being removed in version 2.0, you therefore need version <= 1.14 to operate tflearn.

In the command line (not the notebook), conda install tensorflow=1.14 (or tensorflow-gpu=1.14 if you want GPU support ; or pip install rather than conda install depending on what you are used to do).

Answered By – hasangzc

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published