I installed the latest version of Python (3.6.4 64-bit)
and the latest version of PyCharm (2017.3.3 64-bit)
. Then I installed some modules in PyCha
Running this before the tensorflow
installation solved it for me:
pip install "pip>=19"
As the tensorflow's system requirements states:
pip 19.0 or later
In case you are using Docker, make sure you have
FROM python:x.y.z
instead of
FROM python:x.y.z-alpine
.
I solved the same problem with python 3.7 by installing one by one all the packages required
Here are the steps:
See the error message:
couldn't find a version that satisfies the requirement -- the name of the module required
This way I installed more than 30 packages and it helped. Now I have tensorflow of the latest version in Python 3.7 and didn't have to downgrade the kernel.
There are a few important rules to install Tensorflow:
You have to install Python x64. It doesn't work on 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 am giving it for Windows
If you are using python-3
py -m pip install --upgrade pip
py -m pip install <package-name>
If you are using python-2
py -2 -m pip install --upgrade pip
py -2 -m pip install <package-name>
It worked for me
Looks like the problem is with Python 3.8. Use Python 3.7 instead. Steps I took to solve this.
Worked for me.