[Python] tensorflow GPU is not available

Discussão em 'Python' iniciado por Stack, Fevereiro 6, 2025.

  1. Stack

    Stack Membro Participativo

    I followed through Jeff Heaton's youtube video to install tensorflow with GPU. I have Eva nivida GTX 1660 Ti. After that, it show GPU is not available. any suggestion if something goes wrong? Thanks

    https://www.youtube.com/watch?v=PnK1jO2kXOQ&list=PLrx-l85_irc5IQhZ-yOLq6NjV7GajbT0h&index=8&t=86s https://github.com/jeffheaton/t81_5...ter/install/tensorflow-install-jul-2020.ipynb

    # What version of Python do you have?
    # What version of Python do you have?
    import sys

    import tensorflow.keras
    import pandas as pd
    import sklearn as sk
    import tensorflow as tf

    print(f"Tensor Flow Version: {tf.__version__}")
    print(f"Keras Version: {tensorflow.keras.__version__}")
    print()
    print(f"Python {sys.version}")
    print(f"Pandas {pd.__version__}")
    print(f"Scikit-Learn {sk.__version__}")
    gpu = len(tf.config.list_physical_devices('GPU'))>0
    print("GPU is", "available" if gpu else "NOT AVAILABLE")


    Tensor Flow Version: 2.3.0
    Keras Version: 2.4.0

    Python 3.8.5 (default, Sep 3 2020, 21:29:08) [MSC v.1916 64 bit (AMD64)]
    Pandas 1.2.0
    Scikit-Learn 0.23.2
    GPU is NOT AVAILABLE

    Continue reading...

Compartilhe esta Página