[Solved] ModuleNotFoundError: No module named ‘tensorflow’ – Python/Conda

Greetings! Some links on this site are affiliate links. That means that, if you choose to make a purchase, The Click Reader may earn a small commission at no extra cost to you. We greatly appreciate your support!

Want to get certified as an expert TensorFlow developer? Enroll in the TensorFlow Developer Certificate in 2022: Zero to Mastery Course! 404


The ModuleNotFoundError: No module named ‘tensorflow’ error comes up when the TensorFlow module is not installed in either your current Python or Conda environment.

ModuleNotFoundError: No module named ‘tensorflow’ - Solution

You can solve it by writing the following command in your command prompt/terminal based on your environment:

  • Python environment
pip install tensorflow
  • Conda environment
conda install tensorflow

This will install TensorFlow in your base environment and you can start using it by writing the following import statement in Python or Jupyter notebook/lab:

import tensorflow
print(tensorflow.__version__)

This will print out the version of the installed TensorFlow module in your current Python or Conda environment.


Want to get certified as an expert TensorFlow developer? Enroll in the TensorFlow Developer Certificate in 2022: Zero to Mastery Course! 404

Leave a Comment