Stack Overflow Asked by dbJoker on November 4, 2021
I get this error when I try to import Keras into my project.
How to solve ImportError: Keras requires TensorFlow 2.2 or higher. Install TensorFlow via
pip install tensorflow
I verified the versions I have installed (with pip) for everything and I have:
I have linked a picture of the full error. There is some stuff about Dll but I’m not sure if this is what creates the error.
ImportError: Keras requires TensorFlow 2.2 or higher. Install TensorFlow via pip install tensorflow
Fix:
python -m pip install –upgrade pip
pip install keras==2.1.5
This worked for me.
If above step are not solving the error then check your libraries with specific version.
Python==3.6.4
Numpy==1.18.5
Pandas==1.1.4
scikit-learn==0.21.2
Tensorflow==1.13.1
keras==2.1.5
Hope this worked for you.
Answered by Moin Uddin on November 4, 2021
Please update keras version.
python -m pip install –upgrade pip
Answered by pranita on November 4, 2021
Tensorflow requires Python 3.5–3.8 , pip and venv >= 19.0
in order to fix it:
sudo apt install python3-pip
pip3 install --upgrade pip
python3 -m pip install tensorflow
if you already had tensorflow installed substitute the last command this this:
pip3 install --upgrade tensorflow
hope it helped.
Answered by BraveAdmin on November 4, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP