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.
PYTHONPATH
environment variable (usually in your.bash_profile
or similar) or in the program you can append the directory name tosys.path
. – Pandemonium#!
to load Python, or runningpython n.py
)? What doespython --version
say? – Mireielleprint sys.path
say? Does it have site-packages? – Idiomorphic