ModuleNotFoundError: No module named ‘tensorflow’ in jupeter

anaconda jupyter

Option A:

conda install tensorflow

That’s it !


pip3 install tensorflow

This will install tensorflow in the main (base) environment and you will have tensorflow alongside other tools you already have.

Option B:

  1. Download and install Anaconda or the smaller Miniconda.
  2. On Windows open the Start menu and open an Anaconda Command Prompt. On macOS or Linux open a terminal window. Use the default bash shell on macOS or Linux.
  3. Choose a name for your TensorFlow environment, such as “tf”.
  4. To install the current release of CPU-only TensorFlow, recommended for beginners:
conda create -n tf tensorflow conda activate tf

Since tensorflow is installed in an isolated virtual environment you need in Anaconda dashboard click on the menu: Applications on

You will see “tf” option. click on it. Then press button install and then Launch a new notebook for jupyter.

Image for post
Image for post

Written by

Web geek, Self-taught full-stack web developer, Learning Python, Laravel, Vuejs, UX/UI design, Nuclear Physicist PhD

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store