question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ImportError: Keras requires TensorFlow 2.2 or higher. Install TensorFlow via `pip install tensorflow` im getting this error but i have installed tensorflow and everything

See original GitHub issue

Summary

Type here a clear and concise description of the bug. Aim for 2-3 sentences.

Steps to reproduce

What are the steps we should take to reproduce the bug:

  1. Go to ‘…’
  2. Click on ‘…’
  3. Scroll down to ‘…’

Expected behavior:

Explain what you expect to happen when you go through the steps above, assuming there were no bugs.

Actual behavior:

Explain the buggy behavior you experience when you go through the steps above. If applicable, add screenshots to help explain your problem.

Is this a regression?

That is, did this use to work the way you expected in the past? yes / no

Debug info

  • Streamlit version: (get it with $ streamlit version)
  • Python version: (get it with $ python --version)
  • Using Conda? PipEnv? PyEnv? Pex?
  • OS version:
  • Browser version:

Additional information

If needed, add any other context about the problem here. For example, did this bug come from https://discuss.streamlit.io or another site? Link the original source here!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:25 (3 by maintainers)

github_iconTop GitHub Comments

33reactions
sabraha2commented, Jun 22, 2020

I faced a similar issue and I followed this: https://stackoverflow.com/questions/62465620/error-keras-requires-tensorflow-2-2-or-higher and then still had some compatibility issues which were fixed with: pip install --ignore-installed --upgrade tensorflow==1.6.0 pip install keras==2.1.5

21reactions
iqbalfarzcommented, Jul 4, 2020
Read more comments on GitHub >

github_iconTop Results From Across the Web

How to solve ImportError: Keras requires TensorFlow 2.2 or ...
ImportError : Keras requires TensorFlow 2.2 or higher. Install TensorFlow via pip install tensorflow. Fix: python -m pip install –upgrade pip ...
Read more >
ImportError: Keras requires TensorFlow 2.2 or higher.
ImportError : Keras requires TensorFlow 2.2 or higher. I faced the above issue when installing keras == 2.3.1. pip install keras==2.3.1.
Read more >
How To Solve Importerror: Keras Requires ... - ADocLib
ImportError : Keras requires TensorFlow 2.2 or higher. After the installation is complete, re-import Keras and the problem is solved successfully. Streamlit: ...
Read more >
Build and install error messages - TensorFlow
Error importing tensorflow. Unless you are using bazel, you should not try to import tensorflow from its source directory; please exit the tensorflow...
Read more >
tensorflow-metal | Apple Developer Forums
Tensorflow cannot be imported because it is compiled against a different version of numpy than is installed in the downloadable conda environment. A...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found