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

后端 未结 5 933
逝去的感伤
逝去的感伤 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:38

    This solution always worked for me.

    1) Figure out what Python interpreter you are actually using

    import sys
    print(sys.executable) #prints "path_to_python"
    

    2) On the terminal run: "path_to_python" -m pip install tensorflow where "path_to_python" is the output you got before, obviously.

提交回复
热议问题