Error “Keras requires TensorFlow 2.2 or higher”

后端 未结 4 751
情书的邮戳
情书的邮戳 2020-12-14 02:59

I just installed Visual Studio 2019 and Tensorflow, but I cannot import Keras because I get the following error message:

Keras requires TensorFlow 2.2 or

4条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-14 03:22

    I had the same issue caused by last keras release,what i remember did():

    1-Upgrade tensorflow:

      pip install --user --upgrade tensorflow-gpu
    

    (there might be some missing packages, just pip install them)

    2-Upgrade Tensorboard

    pip install --user --upgrade tensorboard
    

    (there might be some missing packages, just pip install them)

    3-Downgrade Keras

    pip install keras==2.3.1
    

    (latest version working for me)

    4-Downgrade tensorflow-gpu

    pip install --user --upgrade tensorflow-gpu==1.14.0
    

    (latest version working for me)

    Let me know if worked!


    Anaconda 2020.02

    Python 3.7

    CPU i3 8100

    OS Windows 10 64

    Nvidia GPU GTX1050TI

    CUDA 10.1

提交回复
热议问题