Installing Theano in Windows 7 with Python 3.4

I recently upgraded my machine learning toolchain to keras and thought it would be a good time to revisit the ongoing theano + Python 3.4 + Windows 7 saga.  I found a simple set of instructions here which I tweaked a bit to get to work with my setup.  Here are the full instructions:

  1. Install python 64bit
  2. Install precompiled whl from http://www.lfd.uci.edu/~gohlke/pythonlibs
    1. Numpy+MKL library
    2. scipy
  3. Get GCC from http://tdm-gcc.tdragon.net/ (I usually have issues with GCC in Windows, however, this distribution works great out of the box believe it or not)
  4. Install theano via pip and http://www.lfd.uci.edu/~gohlke/pythonlibs
  5. At this point, when I tried to import theano into python 3.4, I would get linking errors.  I then installed libpython from http://www.lfd.uci.edu/~gohlke/pythonlibs and that resolved the issue.
  6. At the python shell, type import theano, it should work
  7. Configure your .theanorc.txt and you should be good to go.

1 Comment

  1. Thank you
    Can you please make a more detailed step by step installation.
    I am a beginner and it would be nice to have screen shots step by step to make easier.
    Thank you and bless you.

Leave a Reply

Your email address will not be published.