ImportError: No module named 'theano'
<p>I have installed (/library/python/2.7/site-packages) theano on my mac and still get this error.</p>

<p><strong>My code is</strong></p>

<pre><code>import theano
theano.test()
</code></pre>

<p><strong>and the error</strong></p>

<pre><code>Traceback (most recent call last):
  File "/Users/mac/Downloads/n.py", line 1, in &lt;module&gt;
    import theano
ImportError: No module named 'theano'
</code></pre>

<p>I did install theano using pip install theano for python 2.7.  </p>

<p>Any idea on why its throwing up the error.</p>

<p>Also I installed Anaconda and it throws the same error as working on idle.</p>

<p>I had the same problem trying to install pygame, i'm using python 3.4.1 so I'm not 100% sure this will work for you</p>

<p>Here is my folder: C:\Python34\Scripts<a href="http://i.stack.imgur.com/xoYJZ.png" rel="nofollow"><img src="http://i.stack.imgur.com/xoYJZ.png" alt="enter image description here"></a></p>

<p><strong>The problem:</strong>
This will of course be different for you, but this is what I did anyway:
I did <code>pip install pygame</code> and it seemed to work but when I tried <code>import pygame</code> I got the same error as you</p>

<p><strong>My solution:</strong> 
instead of installing pygame with pip, I did <code>pip3 install pygame</code> and it worked! so for you, look at what files you have in this folder <strong>/library/python/2.7/site-packages</strong> and try all of them, try <code>pip2 install theano</code>, try <code>pip2.7 install theano</code>, try <code>pip3 install theano</code>, try everything!</p>

<p>Again I'm not certain this will work for python 2.7, but its worth a try :)</p>

python theano