Easy install and setup of Jupyter Notebook in Anaconda with TensorFlow, Keras and a few other useful packages

Install Anaconda.

Once you’ve done this, go the the START menu of Win 10 and type ‘Anaconda Prompt’. Click on it. You will now see something that looks like a dos prompt.

Just to note, all this can be done in Anaconda software but it’s easier to do it here.

First we want to set up an environment. The environment we will set up in this example is called ‘jamesenvironment’

Type the following and press return, press ‘y’ and enter when asked.

conda create -n jamesenvironment

We now need to activate the environment we just created


conda activate jamesenvironment

We are now ‘in’ the environment we created as can be seen by the (jamesenvironment) before the prompt.

The following can take a little time but this is what I installed to get things working for me. I understand Keras is included with Tensorflow but I wanted just the Keras package as well so I could refer directly to it as opposed to referencing the Tensor package.

The follow is the list of the things I typed at the prompt in my environment. Do each one of these in step, and remember to click ‘y’ when asked.

conda install -c anaconda numpy
conda install -c conda-forge tensorflow
conda install -c conda-forge matplotlib
conda install -c conda-forge keras
conda install -c conda-forge scikit-learn
conda install -c anaconda pandas
conda install -c plotly plotly 

Typing: ‘conda info’ at the prompt will give you information about the environment you are currently in.

Typing: ‘conda info -e’ at the promp will give you a list of the environments you’ve set up.

When you’ve installed all the above packages, open Anaconda Navigator from the start menu.

In the drop down [1] above, you should hopefully be able to select the environment you just created. You should see Jupyter Notebook below but you might have to click the Install button first before you see the Launch buttom [3] as above. If you do not see it click the refresh button [2] a few times.

When you launch Jupyter Notebook in your created environment you will see something like this.

Click on the area [1] New and select Python 3. This will open a new notebook.

Leave a Reply