ModuleNotFoundError: No module named ‘tensorflow’ in jupeter

anaconda jupyter

Panjeh
2 min readJun 11, 2020

Option A:

conda install tensorflow

That’s it !

or

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:

I don’t guarantee this option since it will provide tensorflow in a separate environment and you won’t have access to older installed tools like matplotlib.

  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.

--

--

Panjeh
Panjeh

Written by Panjeh

Posting about Python and Laravel

No responses yet