Deep Learning – Simple installation guide for Theano on Windows

 

Many tutorial videos for convolutional neural networks on youtube (e.g. https://www.youtube.com/watch?v=S75EdAcXHKk)

require the theano python library.

I spent an entire weekend figuring out how to install theano on a windows x64 machine and wanted to share the following quick installation steps:

Its really simple if you know how! (I found that the official documentation on deeplearning.net is a bit overwhelming pointing to so many resources and alternatives. You often end up with misconfigured PATH variables or missing files or wrong compilers etc.)

The following is how it worked for me on a Windows 10 x64 Machine with Visual Studio 2015.


1) Download Anaconda for Windows x64 for Python 2.7 (Dont use the Python 3.5 it will not work!)

https://www.continuum.io/downloads

image

2) After anaconda installation open a command prompt and execute:

conda install mingw libpython

Confirm when it asks for updates!

3) Clone the theano project to your local machine from github. (I assume you know how github works if not check https://www.youtube.com/watch?v=0fKg7e37bQE)

git clone https://github.com/Theano/Theano.git

4) Open a command prompt and navigate to the theano project folder and execute:

python setup.py install

Done! This has installed theano in your global python environment.


You can test your installation by creating a test.py file with the following code line:

import theano

In a command prompt navigate to the folder containing the test.py file and execute:

python test.py 

 


Btw. as far as I understand, further steps would be required to make theano use the GPU! The installation above would only use the CPU for calculations.

14 Comments

Add a Comment

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