[Python] Compatibility issues of tensorflow with numpy versions

Discussão em 'Python' iniciado por Stack, Abril 28, 2025.

  1. Stack

    Stack Membro Participativo

    I installed tensorflow via my Anaconda prompt and the command

    pip install tensorflow


    Thus, tensorflow-2.12.0 was installed. However, this came with the error message


    numba 0.55.1 requires numpy<1.22,>=1.18, but you have numpy 1.22.4 which is incompatible.
    ​

    When I downgrade my numpy to a version I believe to be compatible with numba with

    pip install numpy==1.21.6


    I now get the error message


    tensorflow-intel 2.12.0 requires numpy<1.24,>=1.22, but you have numpy 1.21.6 which is incompatible.
    ​

    Am I mistaken or is this rather contradictory? How should I proceed here? I intend to start learning about Machine Learning algorithms so I am uncertain how much numba I will need there.

    Thanks for your help in advance!

    Continue reading...

Compartilhe esta Página