title: ImportError: cannot import name np_utils
body: <p>I'm trying to run the following <a href="https://github.com/fchollet/keras/blob/master/examples/stateful_lstm.py" rel="noreferrer">example</a> from keras</p>
  
  <p>but I get this error:</p>
  
  <pre><code>ImportError
  Traceback (most recent call last)
  &lt;ipython-input-58-50de27eea0f8&gt; in &lt;module&gt;()   
        8 import numpy as np  
        9 import matplotlib.pyplot as plt  
  ---&gt; 10 from keras.models import Sequential  
       11 from keras.layers import Dense, LSTM  
       12   
  
  /usr/local/lib/python2.7/dist-packages/keras/__init__.py in &lt;module&gt;()  
        1 from __future__ import absolute_import  
        2   
  ----&gt; 3 from . import utils  
        4 from . import activations  
        5 from . import applications  
  
  /usr/local/lib/python2.7/dist-packages/keras/utils/__init__.py in &lt;module&gt;()  
        1 from __future__ import absolute_import  
  ----&gt; 2 from . import np_utils  
        3 from . import generic_utils  
        4 from . import data_utils  
        5 from . import io_utils  
  
  ImportError: cannot import name np_utils  
  </code></pre>
  
  <p>I'm using Ubuntu and I installed keras with:</p>
  
  <pre><code>sudo pip install keras 
  </code></pre>
  
  <p>This question was already asked but there was no answer:
  <a href="https://stackoverflow.com/questions/45060150/keras-cannot-import-name-np-utils">Keras: Cannot Import Name np_utils</a> </p>