. Advertisement .
..3..
. Advertisement .
..4..
One of the most frequently asked errors, for example, is “Could not find a version that satisfies the requirement tensorflow in python“. So, how can this be resolved? We will discuss together to figure out the best solutions for you.
When Does The Error “Could not find a version that satisfies the requirement tensorflow in Python” Happen?
With this command, you are attempting to install TensorFlow.
pip3 install tensorflow
But you face the following error.
Collecting tensorflow
Could not find a version that satisfies the requirement tensorflow (from versions: )
No matching distribution found for tensorflow
In another case, we installed the most recent versions of Python (3.6.4 64-bit) and PyCharm (2017.3.3 64-bit). Then we installed some modules in PyCharm (Numpy, Pandas, and so on), but when we tried to install Tensorflow, it didn’t work and we received the error.
Could not find a version that satisfies the requirement TensorFlow (from versions: ) No matching distribution found for TensorFlow.
Then we attempted to install TensorFlow from the command prompt, and received the same error message. tflearn, on the other hand, was successfully installed.
We also installed Python 2.7, but we received the same error message. We googled the error and tried some of the solutions suggested by others, but nothing worked (this included installing Flask).
Cause of error
Here are some possible reasons why you might get this error:
– You are using an outdated or deprecated version of Tensorflow.
– The name given to the whl program installed by pip doesn’t meet the system requirements
The Top Solutions For You
And, believe it or not, you might be able to solve it with simple methods.
Solution 1: Run this command.
We had the same problem, but we fixed it by running this command.
pip3 install --upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.0.0-py3-none-any.whl
Now your error must be resolved.
Solution 2: Use a 64-bit version of Python
Tensorflow is only compatible with 64-bit Python. If you are using a 32-bit version of Python, you will encounter this error. So, you need to download the latest 64-bit version of Python from the Python website.
And your problem should be resolved.
Solution 3:
Also you can try the following, follow the steps below:
First, in python enter the following code:
>>> import wheel.pep425tags
>>> print(wheel.pep425tags.get_supported())
[('cp27', 'cp27m', 'linux_x86_64'), ('cp27', 'none', 'linux_x86_64'), ('cp27', 'none', 'any'), ('cp2', 'none', 'any'), ('cp26', 'none', 'any'), ('cp25', 'none', 'any'), ('cp24', 'none', 'any'), ('cp23', 'none', 'any'), ('cp22', 'none', 'any'), ('cp21', 'none', 'any'), ('cp20', 'none', 'any'), ('py2', 'none', 'linux_x86_64'), ('py27', 'none', 'any'), ('py2', 'none', 'any'), ('py26', 'none', 'any'), ('py25', 'none', 'any'), ('py24', 'none', 'any'), ('py23', 'none', 'any'), ('py22', 'none', 'any'), ('py21', 'none', 'any'), ('py20', 'none', 'any')]
>>>
then instead of using:
tensorflow-1.14.0-cp27-cp27mu-manylinux1_x86_64.whl
let’s convert to:
tensorflow-1.14.0-cp27-none-linux_x86_64.whl
Solution 4:
In case you are using anaconda, downgrade to python 3.6 version:
conda install python=3.6
Then run the tensorflow install command
pip install tensorflow
Conclusion
If you’re stuck on the error “Could not find a version that satisfies the requirement tensorflow in Python”, the remedies listed above are the fastest way.
People have a growing community where everybody is usually willing to help if you still need advice or have frequent doubts. Finally, we hope you’re having fun with the amazing code options and appreciate spending time reading.
Leave a comment