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.
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.
"path_to_python" -m pip install tensorflow
"path_to_python"