I am trying to work on neural networks in Python using the following Keras packages:
from keras.utils import np_utils from keras.layers.core import Dense, Activation, Dropout from keras.models import Sequential from keras.layers.core import Dense, Dropout, Activation, Flatten from keras.layers.convolutional import Convolution2D, MaxPooling2D from keras.optimizers import SGD
But, I am getting the following error:
15 import theano ---> 16 from theano import gof 17 from theano.compat.python2x import partial 18 import theano.compile.mode ImportError: cannot import name gof
Installing installed conda install keras
. Later I tried to use pip install Theano
, but it did not work. I Tried to install using pip install git
, but I am getting this error: cannot find command git.
So I installed Git and I set the environment variables.
So, is there any procedure to install these packages?
Developer Installation Install the developer version of Theano with: git clone git://github.com/Theano/Theano.git cd Theano <sudo> pip install <--user> <--no-deps> -e .
It is my solution for the same problem
conda update conda
conda update --all
conda install mingw libpython
pip install git+git://github.com/Theano/Theano.git
pip install git+git://github.com/fchollet/keras.git
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With