First follow what's in here:
http://pavel.surmenok.com/2014/05/31/installing-theano-with-gpu-on-windows-64-bit/
First get the MS python tools. This is particularly useful when you have issues such as
Unable to find vcvarsall.bat
during compilation: