title: How do I upgrade "keras" from 1.2.0 to 2.0.0?
body: <p>I am running an image classifier but it keeps producing the error </p>
  
  <blockquote>
    <p>Keras loaded from keras Python module v1.2.0, however version 2.0.0 is required. Please update the keras Python package.
    Error in py_call_impl(callable, dots$args, dots$keywords) : 
      TypeError: <strong>init</strong>() got an unexpected keyword argument 'data_format'</p>
  </blockquote>
  
  <p>I have tried to remove and re-install keras through using python command <strong><em>"pip install keras --upgrade"</em></strong> and also through R using "<strong><em>install.packages("keras")</em></strong>" but all in vain.</p>
  
  <p>Some one please advise me on how to get past that. When I try to update keras from python, it gives;
  <a href="https://i.stack.imgur.com/jPH2v.jpg" rel="nofollow noreferrer">enter image description here</a></p>