ModuleNotFoundError: No module named ‘tensorflow’ in jupeter

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:

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.

Image for post

Also to install Keras you need to do this:

conda install -c anaconda keras

Read more here:

Python – Install Keras in anaconda on Windows 10

Link to the Video Step 1: Create a new conda environment where we will install our modules to built our models Step?

Setup a Python Environment for Machine Learning and Deep Learning

Interest in Machine Learning and Deep Learning has exploded over the past decade. You see machine learning in computer?

Installing Keras & Tensorflow using Anaconda for Machine Learning

This series will teach you how to explore and built models using python.

No Responses

Write a response