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

**My code is**

    
    
    import theano
    theano.test()
    

**and the error**

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

I did install theano using pip install theano for python 2.7.

Any idea on why its throwing up the error.

Also I installed Anaconda and it throws the same error as working on idle.


Answer: 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

Here is my folder: C:\Python34\Scripts[![enter image description
here](http://i.stack.imgur.com/xoYJZ.png)](http://i.stack.imgur.com/xoYJZ.png)

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

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

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

