streamlit: 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
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:
- 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!
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 25 (3 by maintainers)
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.0pip install keras==2.1.5Oh 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.
i have tensorflow version 2.2 downloaded still facing same problem
@ArunvardhanReddy which version of tensorflow do you have if you are having tensorflow version==2.1, try installing keras version==2.3.1 compatible with python version>=3.6
by simply writing a command on anaconda\command prompt as “conda install keras==2.3.1”
Thanks a lot… This worked!
i was getting this issue with last couple of days. i uninstalled first dependent pkg using pip and pip3 first. made venv. then installed in sequence. uninstall
it worked.