I have python 3. I installed "Theano" bleeding edge and "Keras" using
pip install --upgrade --no-deps git+git://github.com/Theano/Theano.git
and also
pip install --upgrade git+git://github.com/Theano/Theano.git
and
pip install git+git://github.com/fchollet/keras.git
But when I try to import Theano, I receive the following error:
AttributeError: module 'theano' has no attribute 'gof'
I looked for a solution online and reached nothing...
This is the piece of code I receive an error on (the last line produces error):
import sys
import numpy as np
import pandas as pd
from sklearn import preprocessing
from keras.models import Sequential
Since I don't have enough experience with python I'm completely lost and can't figure out what to do...
Any help would be appreciated.
theano
itself work? do you get an error if you just executeimport theano
? can you run for example the code in some of these examples deeplearning.net/software/theano/tutorial/examples.html? Also checkout a similar question posted on quora. I've had a very similar problem with runningtheano
and solved it by removing it and reinstalling it throughanaconda
– Aspicpip
. Once you set it up (see their docs for that) you can install theano simply withconda install theano
– Aspic