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

Table of Contents
Primary Item (H2)

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

Written by
The Click Reader
At The Click Reader, we are committed to empowering individuals with the tools and knowledge needed to excel in the ever-evolving field of data science. Our sole focus is delivering a world-class data science bootcamp that transforms beginners and upskillers into industry-ready professionals.

Interested In Data Science Bootcamp?
Request more info now.

Lead Collection Form
linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram