How to install Keras and Theano on Anaconda Python 2.7 on Windows

Assuming you already have Anaconda 32-bit or 64-bit installed :

  • Download and install tdm-gcc, which is a compiler suite based on the GNU toolchain.
    • Don’t miss to choose the 64-bit edition, depending on your Anaconda version.
      tdm-gcc-select-edition
  • Open the Anaconda prompt as administrator (not to be confused with the usual ms-dos prompt). You can found it in the Start Menu :
    Anaconda prompt in Start menu
  • Run the following commands :
    • conda update conda
    • conda update --all
    • conda install mingw libpython
    • pip install git+git://github.com/Theano/Theano.git   #Install Theano
    • pip install git+git://github.com/fchollet/keras.git  #Install Keras

 

Based on this answer from StackOverflow

Laisser un commentaire

Votre adresse de messagerie ne sera pas publiée. Les champs obligatoires sont indiqués avec *