Keras – 3. Install Software (Python, TensorFlow, Keras)

Welcome to CS With James

In this tutorial I will discuss about how to get your machine ready for studying deep learning. We are going to install lots of software packages and test run if it works.

I will user iTerm for this tutorial but you can use regular terminal.


In MacOS and Unix they come with the Python3 pre-installed, so you don’t have to install. The only thing you have to do is type


to check if the Python3 is installed. If the Python3 is installed you will see something like this.

If the Python3 is not installed in your MacOS, then you can use Brew to install the Python3

Installing Brew

/usr/bin/ruby -e "$(curl -fsSL"

brew install python3 


In order to install TensorFlow, go to Tensorflow website for help. In the most cases you can install Tensorflow simply type

pip3 install tensorflow

for the CPU only version

pip3 install tensorflow-gpu

for the GPU version.

The latest GPU enabled TensorFlow version in MacOS is 1.1.0, so to use the most recent version of TensorFlow you need to build from the source code. however, the version 1.1.0 should be fine for learning the TensorFlow

I will post the tutorial how to build TensorFlow from the source code.


If you have successfully install the Tensorflow in your machine, then install Keras is easy.

Simply type

pip3 install keras

It will automatically install the Keras.


Leave a Reply

Your email address will not be published. Required fields are marked *