How I installed Theano on Windows - marczellm/algorimp GitHub Wiki
Theano doesn't like paths that contain spaces or non-ASCII characters, so keep that in mind when installing stuff. My Windows username is Márton, so I had to specify a different directory because Theano tried and failed to use C:\Users\Márton\AppData
as the compiledir.
-
Download and install MSYS2 from http://msys2.github.io. Follow their instructions to refresh the package database.
-
Install the MinGW compiler:
-
for 32-bit:
pacman -S mingw-w64-i686-gcc
-
for 64-bit:
pacman -S mingw-w64-x86_64-gcc
-
-
Add the compiler binary directory to PATH. This in my case is
D:\msys2\mingw64\bin\
-
Install NumPy and SciPy from Christoph Gohlke.
- Download the appropriate wheels for your Python version and architecture.
pip install
with the wheel filename as argument.
-
pip install Theano
-
My
.theanorc
is atC:\Users\Márton\.theanorc
and the contents are:[global] base_compiledir = D:\theano\ [gcc] cxxflags = -D_hypot=hypot
The cxxflags are there to fix an include error with cmath during compilation.