I just study keras for a few days and I have met this problem. Is there anyone willing to help me to solve this problem.Thanks very much!
I have the same issue
[EDIT]
sudo pip install keras did the work
@ludwikbukowski
sudo pip install keras
Requirement already satisfied: keras in /usr/lib/python2.7/site-packages
Requirement already satisfied: theano in /usr/lib/python2.7/site-packages (from keras)
Requirement already satisfied: pyyaml in /usr/lib64/python2.7/site-packages (from keras)
Requirement already satisfied: six in /usr/lib/python2.7/site-packages (from keras)
Requirement already satisfied: numpy>=1.7.1 in /usr/lib64/python2.7/site-packages (from theano->keras)
Requirement already satisfied: scipy>=0.11 in /usr/lib64/python2.7/site-packages (from theano->keras)
sudo pip install keras do not work
I have similar problem.
Import error: No module named keras.preprocessing.text
I have the same problem.
module 'keras.preprocessing' has no attribute 'text'
It worked after updating keras, tensorflow and importing from keras.preprocessing.text specifically
I know updating alone wasn't enough, but I don't know if it could have worked with just the import.
pip install -U pip keras tensorflow
from keras.preprocessing.text import Tokenizer
problems solved in latest version
This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 30 days if no further activity occurs, but feel free to re-open a closed issue if needed.
I have the same problem with .text. All the files are however inside preprocessing (image.py, sequence.py, text.py) but only sequence can be imported.
My temporary solution is to import text (or image) from tf.contrib.keras.preprocessing.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 30 days if no further activity occurs, but feel free to re-open a closed issue if needed.
you can update the keras to the lastest version.
It worked after updating keras, tensorflow and importing from keras.preprocessing.text specifically
I know updating alone wasn't enough, but I don't know if it could have worked with just the import.pip install -U pip keras tensorflow
from keras.preprocessing.text import Tokenizer
this worked for me too!
AttributeError Traceback (most recent call last)
1 m,n,r = bgr_image.shape
----> 2 arr = keras.preprocessing.image.reshape(m*n, -1)
3 df = pd.DataFrame(arr, columns=['b', 'g', 'r'])
4 df.describe()
AttributeError: module 'keras.preprocessing.image' has no attribute 'reshape'
I am getting this error
I am getting this error
Using Colab
Most helpful comment
@ludwikbukowski
sudo pip install kerasdo not work