I have been trying to install Lasagne and Theano in Anaconda (Jupyter) on MacOS Sierra (10.12.3) to use this neural network: neural-storyteller
However when I try to import them in Jupyter:
import lasagne
import theano
I get this error:
ImportError Traceback (most recent call last)
<ipython-input-2-7d877a974cd7> in <module>()
----> 1 import lasagne
2 import theano
//anaconda/lib/python2.7/site-packages/lasagne/__init__.py in <module>()
11 section 'Install from PyPI' in the installation docs for more details:
12 http://lasagne.readthedocs.org/en/latest/user/installation.html#install-from-pypi
---> 13 """)
14 else:
15 del theano
ImportError: Could not import Theano.
Please make sure you install a recent enough version of Theano. See
section 'Install from PyPI' in the installation docs for more details:
http://lasagne.readthedocs.org/en/latest/user/installation.html#install-from-pypi
My guess is that I installed Theano on a different version of python because when I make a normal python file (.py) and import lasagne and theano they work. Also, when I look in the anaconda folder in the User directory there is no theano folder but there is one in the miniconda2 folder (/Users/Pit/miniconda2/pkgs/theano-0.9.0-py27_0). I could just use a .py file, but I also need the caffe library which I could only get to work with Anaconda python.
Does anybody know how to install the right version of theano that works in Anaconda (Jupyter)? Any help would be much appreciated