ERROR: Could not find a version that satisfies the requirement tensorflow (from versions: none) ERROR: No matching distribution found for tensorflow)

后端 未结 5 935
逝去的感伤
逝去的感伤 2021-01-19 14:20

I want to install tensorflow to use Keras LSTM I installed Keras, and i import this lines to my code.

from keras.callbacks import LambdaCallback
from keras.         


        
5条回答
  •  终归单人心
    2021-01-19 14:52

    Hi writing my suggestions here because i can't commment yet.

    Could you try to look if you have the right python version installed? Sometimes something went wrong and a 32-bit version of python is installed. But tensorflow only works with the 64 bit verison of python. You can check your python version with the following comand into the python interpreter

    import struct
    print struct.calcsize("P") * 8
    

    It should print "64".

    It generally seems that there is a problem with python 3.7 and tensorflow (here)

    For some people there it helped to install a specific tensorflow version

    pip install tensorflow==1.14.0
    

    as also seen here.

    Also a solution might be to downgrade to phyton 3.6.

    For 3.6: Another possible solution can be found in this thread (For Windows only for Python 3.6 as of the date of this answer)

    TLDR: The most upvoted answer suggestes to try following input (for python 3.6 CPU-only)

    python3 -m pip install --upgrade https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-2.0.0-cp36-cp36m-win_amd64.whl
    

    I hope this helps to solve your problem.

提交回复
热议问题