Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I install theano in Anaconda ver. 2.1 Windows 64 bit for Python 3.4?

I've installed Anaconda. Now I want to install the Theano library in Anaconda. I have tried:

  1. The Theano installer for Anaconda from http://deeplearning.net/software/theano/install.html#windows-installer-for-anacondace, but it raises error "The installer could not find a version of Anaconda installed. Please download and install Anaconda CE". I have added ~/anaconda3, ~/anaconda3/scripts to the environment variable path.

  2. I have tried to install it by building the package as mentioned on Stack Overflow, How do I keep track of pip-installed packages in an Anaconda (Conda) environment?, but this also fails during the testing of package. The error screenshot is below:

Theano error message

I have even installed Python ver. 3.4, installed Theano using pip install, and when I tried to import Theano it gave an error similar to the error in the screen shot. I tried the changes mentioned in this Google Groups discussion, Re: [theano-users] Install Theano on Windows for Python 3, but no luck.

like image 958
pythoniesta Avatar asked Sep 29 '22 03:09

pythoniesta


1 Answers

Running Theano on Python 3.4 is complicated. So far I would recommend that you run Theano in Python 2.7. The libraries written for Theano are Python 2.6+ based. So in order to get Theano running in Python 3.4, you would be needing the 2to3 automated python 2 to 3 code translation tool. I haven't tested Theano using 2to3, so I can't comment on whether it would work or not. But, I am using Python 2.7 and Theano works smoothly. Also, you might want to use AnacondaCE with Python 2.7 installer which pretty much gives you everything you need to start developing.

You would also need to reinstall Theano using

pip install Theano
like image 184
Raptor Avatar answered Oct 03 '22 03:10

Raptor