Installing Theano on 64 bit Windows using Pip

Hi! So I will be here briefing about the steps for the installation of Theano on 64 bit version of Windows. The instructions are also provided on the official page of Theano but some dependencies required for Theano poses few problems especially on 64 bit version of Windows.

Actually I write these steps so that they can be useful to me later in the future. Anyways, here it goes:


  1. Dependencies:
    • Python == 2.7* or ( >= 3.3 and < 3.6 ) : Go to https://www.python.org/downloads/ and install 2.7.* version. After installing Python, go to "C:/Python27". Add C:/Python27 and C:/Python27/Scripts to the Path in System Environment Variables (SEV) to . For SEV, just search "variables" in windows start. This allows us to use Pip on command terminal.
    • NumPy >= 1.9.1 <= 1.12: Open cmd terminal and enter  pip install numpy
    • SciPy >= 0.14 < 0.17.1: Scipy is a bit tricky for 64 bit. Go to http://www.lfd.uci.edu/~gohlke/pythonlibs/#scipy and download 
    • scipy‑0.19.0‑cp27‑cp27m‑win_amd64.whl file.
    • You may also try other 64 bit versions of this wheel. This one worked for me.
      Then, open the cmd and go to the folder where you downloaded the file.
      Enter pip install scipy‑0.19.0‑cp27‑cp27m‑win_amd64.whl
    • g++: This is a bit difficult and tricky if you don't know (except if you are not Bahubali!). Nonetheless, follow the steps on: http://www.msys2.org/ and install mingw-64 toolchain.
    • IF THIS DOES NOT WORK, THEN UNFORTUNATELY YOU HAVE TO INSTALL MINICONDA FROM here: https://conda.io/miniconda.html and
      enter conda install m2w64-toolchain  [You have to rely on conda! can't do much on this]
  2. Installing Theano using pip
    1. pip install Theano
    2. Open Idle or any python terminal and check your Theano installation using :
      import theano.tensor as T
    3. If no error pops,, then evey thing is good to go.

Comments

Popular posts from this blog

ImportError in Ipython (Linux )

Using pip in windows under a proxy