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.models import Sequential
from keras.layers import Dense, Activation
from keras.layers import LSTM
from keras.optimizers import RMSprop
Error is when runnig the code:
No module named 'tensorflow'
Cmd error when i write "pip install tensorflow" :
ERROR: Could not find a version that satisfies the requirement tensorflow (from versions: none)
ERROR: No matching distribution found for tensorflow
Pip version is 19.3 , python version 3.7
TensorFlow is tested and supported on the following 64-bit systems: Python 3.7–3.10. Ubuntu 16.04 or later. Windows 7 or later (with C++ redistributable)
The Python "ModuleNotFoundError: No module named 'tensorflow'" occurs when we forget to install the tensorflow module before importing it or install it in an incorrect environment. To solve the error, install the module by running the pip install tensorflow command.
To check your TensorFlow version in your Jupyter Notebook such as Google's Colab, use the following two commands: import tensorflow as tf This imports the TensorFlow library and stores it in the variable named tf . print(tf. __version__) This prints the installed TensorFlow version number in the format x.y.z .
On Windows, you must use Python 3.7.6 (64 bits) (or later version, provided it is 64-bits) to install tensorflow:
C:\Program Files\Python-3.7.6-x64> python.exe -m pip install --user tensorflow
Unfortunately, the 32-bit version is not supported by tensorflow and will give you that nasty error:
Could not find a version that satisfies the requirement tensorflow (from versions: none) ERROR: No matching distribution found for tensorflow
A few important notes:
C:\\Users\\karlphillip\\AppData\\Roaming\\Python\\Python37\\site-packages
.python -m pip install --user --upgrade pip
.python -m pip install --user tensorflow
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With