ImportError: No module named theano

382 views
Skip to first unread message

hachimitsuchai

unread,
Sep 15, 2016, 5:38:11 PM9/15/16
to spyder
So I've read the posts on SO and anything else I could find. Those issues seem to be a bit different in that the root of the problem appears to be different since the fix produced no results in my case. I believe I have done everything possible to troubleshoot this besides a full uninstall of every instance of Python and all modules.

The message in the console is  "ImportError: No module named theano" 

I have the invisible .theano in /usr/bob/theano
I have theano in /usr/local/lib/python2.7/site-packages

I also have theano in /usr/lib/python3.5/site-packages

When I am in Terminal Python2/3 and do an import of theano to check if its installed properly it is there. 
When I do pip2/3 install theano I already have it as expected.

I have tried copying the theano module folder to the 'Spyder.app/Contents/Resources/lib/python2.7. (new error saying I was missing python.h)
I have tried the PYTHONPATH manager then updating the module names list.
I have tried using a different interpreter (which only produces further errors.)

I have tried using theano in a venv and still got the same error message. 

My instances of python exist in the following locations.
/usr/local/bin   contains aliases to python2, python2.7, python3, python3.5
/usr/bin   contains aliases to python2.6, python2.7
/system/library/frameworks/Python.framework/Versions/ (2.3, 2.5, 2.6, 2.7 and Current which is pointing to 2.7)
/usr/local/Cellar/python/2.712/Frameworks/Python.Framework/Versions/2.7, Current

I've spent two days on this and am pulling out my hair. Please help.
Reply all
Reply to author
Forward
0 new messages