Fail importing theano

290 views Asked by At

I could import theano ok yesterday. Today, when I want to import theano, it says "No module named theano".

But question is numpy and scipy could be imported and they are in the same address as theano. I first think theano might error in itself, but after I uninstall and install it again. It still just can't work.

I just upgrade my Mac to "El Capitan preview" today. Is there any relation between them.

2

There are 2 answers

0
xagg On

In a python shell, type:

>>> pip install theano

If you don't have pip, download getpip.py and execute it (outside of the python shell).

python getpip.py

Then,

python
>>> pip install theano
0
Vektor88 On

Are you using something like Anaconda or non-stock python?

You might want to check the ~/.bash_profile and add:

export PATH = /path/to/anaconda/bin:$PATH

If you have multiple installations of python, maybe you're executing the one that doesn't have theano installed.