How to install Keras and Theano in Anaconda Python on Windows

Install Anaconda

Is the leading open data science platform and is the recommended tool for use with Theano.  It is a free, easy to install python distribution and package manager that has a collection of over 720 open source package.  You can find a cheat sheet at the following location: Anaconda cheat sheet

  • Install Anaconda x64.
  • Open the Anaconda prompt

Conda is the Anaconda command line for managing packages.  We will be using this to install all the python related packages required. Before doing this we must ensure we have the most up to date version of Conda.  To do this type the following in the Anaconda prompt:

Next, we update Anaconda and all installed packages. To do this type the following in the Anaconda prompt:

Next, we install the packages required for Theano. To do this type the following in the Anaconda prompt:

Install Theano

Theano is a Python library that allows you to define, optimize, and evaluate mathematical expressions involving multi-dimensional arrays efficiently. It can use GPUs and perform efficient symbolic differentiation.  To install the latest version of Theano type in the following in the Anaconda prompt:

Install Keras

Keras is a high-level deep learning library written in Python which runs on top of either  TensorFlowCNTK, or Theano.  It was developed so that developers can easily create convolutional and/or recurrent networks.  To install the latest version of Keras, type in the following in the Anaconda prompt:

 

%d bloggers like this: