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 issueSummary
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:
- Go to ‘…’
- Click on ‘…’
- 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:
- Created 3 years ago
- Comments:25 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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
Oh well, I have solved my problem by installing https://download.visualstudio.microsoft.com/download/pr/d60aa805-26e9-47df-b4e3-cd6fcc392333/7D7105C52FCD6766BEEE1AE162AA81E278686122C1E44890712326634D0B055E/VC_redist.x64.exe. Restart your computer after installing it.