[Solved]: ModuleNotFoundError: No module named 'tensorflow' on Mac/windows/Linux

ERROR:

I have this code:

import tensorflow as tfimport numpy as np# preprocessed datafrom datasets.cornell_corpus import dataimport data_utils

when I am running then I am getting this error:

Solution:

You can install it with

 pip install tensorflow==1.4.0you can any version which you want.