I am trying to install tensorflow in python using pip command as
pip install tensorflow
, but unfortunately, I received the following error:
Could not find a version that satisfies the requirement tensorflow (from versions: ) No matching distribution found for tensorflow
I have also tried to install tensorflow using the following command
pip install --upgrade
https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-0.12.0rc0-cp35-cp35m-win_amd64.whl, but was again faced with the following error:
tensorflow-0.12.0rc0-cp35-cp35m-win_amd64.whl is not a supported wheel on this platform. Additionally, I have checked the same commands against Python Version 3.5x 3.6x and obviously 3.7 as well, but those didn't work.
- 336
- 2
- 17
- 11
- 1
- 1
- 2
-
1I think it might be useful to add some information about your configuration. – Bobby Feb 23 '19 at 17:42
-
Try tensorflow with anaconda. https://anaconda.org/conda-forge/tensorflow – Manualmsdos Feb 23 '19 at 18:46
-
1Try to install latest version once again, TensorFlow 1.13.0 that supports python 3.7 is just released (https://github.com/tensorflow/tensorflow/releases) – Denis Sablukov Feb 23 '19 at 19:22
-
Does this answer your question? [TensorFlow not found using pip](https://stackoverflow.com/questions/38896424/tensorflow-not-found-using-pip) – amitnair92 May 10 '20 at 05:22
6 Answers
I think Tensorflow does not currently have support for Python 3.7 and if you have Python 3.7 currently installed this might be the cause of the error message Could not find a version that satisfies the requirement tensorflow (from versions: ) No matching distribution found for tensorflow
You can downgrade to Python 3.6.x and install tensorflow using pip then.
- 1,114
- 7
- 11
-
As mentioned above i have tried downgrading and tested on python 3.5 and 3.6 – Umer Tanveer Feb 23 '19 at 17:13
Are you sure that you are capitalizing/spelling properly? The command prompt is case-sensitive. The input I use is:
cd C:\path\to\the\directory\python\is\installed\in (cd, space, the path to the directory) then:
python -m pip install TensorFlow
It should work afterwards.
- 336
- 2
- 17
-
Directory are perfect and working on other libraries i have installed other libraries on same directory.. – Umer Tanveer Feb 23 '19 at 17:18
-
Make sure that you are capitalizing properly. Copy and paste my version "TensorFlow" (with T and F capitalized) and try again – Arnav Poddar Feb 24 '19 at 01:11
-
I had the same issue on windows 10, I find out that tensorflow work with python x64 installation and the command I used is the follow:
pip install --upgrade tf
- 11
- 2
-
This will install "Randomised true or false values" - https://pypi.org/project/tf/ – Bala TJ Mar 10 '20 at 13:20
Tensorflow works with 64bit as of now.
if you are wondering from where can u get that : https://www.python.org/downloads/windows/
select x84-64 version (64 bit)
- 447
- 6
- 18
Type on command line(If you are using GPU version)
pip install -U --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/windows/gpu/tensorflow_gpu-1.0.0-cp35-cp35m-win_amd64.whl
or If you are using CPU only
pip install -U --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-1.0.0-cp35-cp35m-win_amd64.whl
- 4,333
- 11
- 23
- 43
- 13
- 4
-
tensorflow-1.0.0-cp35-cp35m-win_amd64.whl is not a supported wheel on this platform. – Umer Tanveer Feb 23 '19 at 17:22
-
try downgrading to python3.5 and then try this one ' pip install tf-nightly ' – younesh Feb 23 '19 at 17:44
-
-
-
yes tried all four version pip install tensorflow 2) pip install tf-nightly 3)pip install tensorflow-gpu 4) pip install tf-nightly-gpu – Umer Tanveer Feb 23 '19 at 17:56
-
check weather your python is 64 or 32 bit and make sure it must be 64 bit – younesh Feb 23 '19 at 18:01
I believe if all of you used this command, the problem is going to be solved finally.
python3 -m pip install --upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.12.0-py3-none-any.whl
- 28,850
- 10
- 94
- 99