Quick Keras (with TensorFlow backend) installation on Macbook Pro using conda

1. Prerequisites

You should have an Anaconda package manager (in this case I used python 3.4)
To install tensorflow

conda install -c conda-forge tensorflow

2. Check that tensorflow was installed

Start a python session with

python

and check that tensorflow is there

# tensorflow
import tensorflow
print(‘tensorflow: %s’ % tensorflow.__version__)

If there weren’t any errors, just exit with

quit()

3. Install keras

pip install keras

4. Check that everything is working

open the python REPL and run:

# keras
import keras
print(‘keras: %s’ % keras.__version__)

You should get something like:

Using TensorFlow backend.
keras: 2.0.3

About dorianbg

A software engineer with interests in data systems. Based in London, United Kingdom
This entry was posted in Data science. Bookmark the permalink.

Leave a comment