Tensorflow is only working with 64-bit version of Python. If you are using 32-bit version of Python then you have to face this error. So That Just use install the 64-bit version of Python latest version via Python's website.
*? @I'mahdi, I do know that tensorflow supports Python 3.10.
Solution 1: Just update pip You just need to update pip and your error will be resolve. Just follow this command. If you are windows users Then run this command. And then also upgrade setuptools after doing the above.
As of October 2020:
Tensorflow only supports the 64-bit version of Python
Tensorflow only supports Python 3.5 to 3.8
So, if you're using an out-of-range version of Python (older or newer) or a 32-bit version, then you'll need to use a different version.
There are a few important rules to install Tensorflow:
You have to install Python x64. It doesn't work with x86/32b and it gives the same error as yours.
It doesn't support Python versions later than 3.8 and Python 3.8 requires TensorFlow 2.2 or later.
For example, you can install Python3.8.6-64bit and it works like a charm.
I installed it successfully by
pip install https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.8.0-py3-none-any.whl
if you are using anaconda, python 3.7 is installed by default, so you have to downgrade it to 3.6:
conda install python=3.6
then:
pip install tensorflow
it worked for me in Ubuntu.
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