Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pip3 install --upgrade tensorflow-gpu: No matching distribution found for tensorflow-gpu #8251

Closed
samodadela opened this issue Mar 9, 2017 · 30 comments

Comments

@samodadela
Copy link

samodadela commented Mar 9, 2017

Following the installation guide at https://www.tensorflow.org/install/install_windows
Installed:

  • CUDA (cuda_8.0.61_win10.exe)
  • cuDDN (cudnn-8.0-windows10-x64-v5.1.zip)
  • Python 3.6 x64 (python-3.6.0-amd64.exe)

Then issued:
C:>pip3 install --upgrade tensorflow-gpu
Collecting tensorflow-gpu
Could not find a version that satisfies the requirement tensorflow-gpu (from versions: )
No matching distribution found for tensorflow-gpu

Same happens with non-gpu version:
C:>pip3 install --upgrade tensorflow
Collecting tensorflow
Could not find a version that satisfies the requirement tensorflow (from versions: )
No matching distribution found for tensorflow

What related GitHub issues or StackOverflow threads have you found by searching the web for your problem?

Environment info

Operating System: Windows 10 x64

Installed version of CUDA and cuDNN:
cudnn-8.0-windows10-x64-v5.1.zip
cuDDN/bin: cudnn64_5.dll

If possible, provide a minimal reproducible example (We usually don't have time to read hundreds of lines of your code)

Just follow the provided instructions on https://www.tensorflow.org/install/install_windows

What other attempted solutions have you tried?

First I tried 32-bit python but found on SO that is not supported (install guide should state which python is requrired 32 or 64)

I wanted specify the correct URL for tensorflow-gpu, but I don't know which is the correct one for r1.0 gpu. Like this (example):
pip install https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.10.0rc0-cp27-none-linux_x86_64.whl

Please provide correct url - on storage.googleapis.com it is not possible to browse the directory contents. I need tensorflow r1.0 x64 gpu!

got the hint from here: http://stackoverflow.com/questions/38896424/tensorflow-not-found-in-pip

Logs or other output that would be helpful

(If logs are large, please upload as attachment or provide link).

@arcosmin
Copy link

arcosmin commented Mar 9, 2017

Tensorflow GPU supports up to and including Python 3.7 refer to supported versions

@samodadela
Copy link
Author

samodadela commented Mar 9, 2017

Indeed! Thanks - the documentation says so but I though anything newer is ok also.
My bad.

Now it installs fine:

C:>pip3 install --upgrade tensorflow-gpu
Collecting tensorflow-gpu
Downloading tensorflow_gpu-1.0.1-cp35-cp35m-win_amd64.whl (43.1MB)
100% |################################| 43.1MB 28kB/s
Collecting wheel>=0.26 (from tensorflow-gpu)
Downloading wheel-0.29.0-py2.py3-none-any.whl (66kB)
100% |################################| 71kB 5.1MB/s
Collecting six>=1.10.0 (from tensorflow-gpu)
Using cached six-1.10.0-py2.py3-none-any.whl
Collecting protobuf>=3.1.0 (from tensorflow-gpu)
Downloading protobuf-3.2.0-py2.py3-none-any.whl (360kB)
100% |################################| 368kB 1.7MB/s
Collecting numpy>=1.11.0 (from tensorflow-gpu)
Downloading numpy-1.12.0-cp35-none-win_amd64.whl (7.7MB)
100% |################################| 7.7MB 165kB/s
Collecting setuptools (from protobuf>=3.1.0->tensorflow-gpu)
Downloading setuptools-34.3.1-py2.py3-none-any.whl (389kB)
100% |################################| 399kB 2.5MB/s
Collecting packaging>=16.8 (from setuptools->protobuf>=3.1.0->tensorflow-gpu)
Downloading packaging-16.8-py2.py3-none-any.whl
Collecting appdirs>=1.4.0 (from setuptools->protobuf>=3.1.0->tensorflow-gpu)
Downloading appdirs-1.4.3-py2.py3-none-any.whl
Collecting pyparsing (from packaging>=16.8->setuptools->protobuf>=3.1.0->tensorflow-gpu)
Downloading pyparsing-2.2.0-py2.py3-none-any.whl (56kB)
100% |################################| 61kB 5.2MB/s
Installing collected packages: wheel, six, pyparsing, packaging, appdirs, setuptools, protobuf, numpy, tensorflow-gpu
Found existing installation: setuptools 28.8.0
Uninstalling setuptools-28.8.0:
Successfully uninstalled setuptools-28.8.0
Successfully installed appdirs-1.4.3 numpy-1.12.0 packaging-16.8 protobuf-3.2.0 pyparsing-2.2.0 setuptools-34.3.1 six-1.10.0 tensorflow-gpu-1.0.1 wheel-0.29.0

@samodadela
Copy link
Author

Now I'm stuck with:
#8253

:)

@phpmind
Copy link

phpmind commented Mar 12, 2017

Thanks it worked for me.

@sangpile
Copy link

Good.

@SpencerOs
Copy link

SpencerOs commented Nov 18, 2017

From what I can tell, my setup is almost the exact same as the problem described in the first post, but with Python 3.5.

  • Windows 10 (x64)
  • CUDA (cuda_8.0.61_win10_network.exe with the applied cuda_8.0.61.2_windows.exe patch)
  • CUDNN (cudnn-8.0-windows10-x64-v6.0.zip unzipped and put into the specified spots)
  • Python 3.5 (python-3.5.4.exe)

Just had to wipe the hard drive last night, so this setup is as fresh as fresh can be. (Installed the newest drivers as of yesterday for the GPU.)
Running the suggested install command restults in:

C:\Windows\system32>pip3 install --upgrade tensorflow-gpu
Collecting tensorflow-gpu
  Could not find a version that satisfies the requirement tensorflow-gpu (from versions: )
No matching distribution found for tensorflow-gpu

Although searching does bring up the specified package.

C:\Windows\system32>pip3 search tensorflow-gpu

...

tensorflow-gpu (1.4.0)                       - TensorFlow helps the tensors
                                               flow

Am I overly stupid and missed something glaringly obvious, or is there something more subtle going on here?

Also, running the command to get it to fetch from the wheel gives this result:

C:\Windows\system32>pip install --upgrade https://storage.googleapis.com/tensorflow/windows/gpu/tensorflow_gpu-0.12.1-cp35-cp35m-win_amd64.whl
tensorflow_gpu-0.12.1-cp35-cp35m-win_amd64.whl is not a supported wheel on this platform.

@jonejkim
Copy link

jonejkim commented Nov 18, 2017

@SpencerOs
I just ran into the same problem and got it fixed.
My problem turned out to be that my python3 installed was 32bit version.
From your 'python-3.5.4.exe' seems like you installed the 32 bit version.
I suggest you try with the 64bit version.
I installed 'python-3.6.3-amd64.exe' and it's successfully pip3 installing.

@agurusa
Copy link

agurusa commented Dec 25, 2017

@jonejkim ran into the same issue, downloading the 64 bit version solved it! Thanks!

You can find it here

@cayman1021
Copy link

I tried Python 3.6.x and 3.7.x (64-bits). Only Python 3.5.x works for "tensorflow-gpu". FYI.

@Timoeller
Copy link

python 3.6.x 64 bit is working for me with
pip3 install --upgrade https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow_gpu-1.4.1-cp36-cp36m-linux_x86_64.whl

newer packages you might find under: https://www.tensorflow.org/install/install_linux#the_url_of_the_tensorflow_python_package

@SoulFireMage
Copy link

Is there a windows version that works on python 3.6 onwards? Unable to locate an answer that works this morning that is all.

@Anchal-Mittal
Copy link

I think you have installed 32 bit version of python. That is why it is not working. Try to install 64-bit version of python and then install tensorflow-gpu.

@KingRial
Copy link

KingRial commented Apr 5, 2018

@Anchal-Mittal you saved my life! :D
It was so obvious that I didn't see it

@akkida746
Copy link

Try this:
pip3 install --upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-0.12.0-py3-none-any.whl

@nullFoo
Copy link

nullFoo commented Jul 26, 2018

How do I change my python to 3.5.x?

Tensorflow GPU only works with Python 3.5.x

@AllenYLJiang
Copy link

Consider to replace pip3 with pip.

@nullFoo
Copy link

nullFoo commented Jul 27, 2018

AllenYLJiang still doenst work

@ghost
Copy link

ghost commented Sep 16, 2018

Just tried this
pip install --upgrade tensorflow_gpu-1.10.1-cp36-cp36m-linux_x86_64.whl
and I get
tensorflow_gpu-1.10.1-cp36-cp36m-linux_x86_64.whl is not a supported wheel on this platform
Looks like python 3.7 is not supported yet.

@adammenges
Copy link

adammenges commented Oct 2, 2018

@arcosmin is this still true? Where does tensorflow document compatible versions?

@nullFoo
Copy link

nullFoo commented Oct 3, 2018

It just doesn't work on python 3.7

@arcosmin
Copy link

arcosmin commented Oct 8, 2018

@adammenges - it seems to now support 3.6 as well. don't think there's a dedicated compatibility area. it's usually mentioned in the install instructions. if there's no package for it then it's not supported. https://www.tensorflow.org/install/pip?lang=python3#package-location

@bytecauldron
Copy link

pip install tensorflow-gpu does work for 3.6 but only up to 3.6.4.
I was having some issues with pip on Windows 10 not finding the wheel on 3.6.5 and above. That could be also only related to the gpu version but I'm not sure. Either way, if you are having trouble with 3.6 still, try 3.6.4 specifically.

@lumliolum
Copy link

I have python 3.7. How can i change it to python 3.5?

@arcosmin
Copy link

@Saisuchith - depends how it has been installed. If it's been installed directly then uninstall 3.7 and install 3.5. If you installed it with Anaconda then you can just create a new environment with a different Python version. Google is your friend here.

@pilhoon
Copy link

pilhoon commented Dec 4, 2018

If you use Anaconda, use python 3.6. refer here.
Just run below.

$ conda create -n py36 python=3.6 anaconda
$ conda activate py36
(py36) $ pip install tensorflow-gpu

@JairIA
Copy link

JairIA commented Jan 24, 2019

Thx a lot @pilhoon, it s solve my issue!!!

@RishiRanjan21
Copy link

Try this
python3 -m pip install --upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.12.0-py3-none-any.whl

@xardit
Copy link

xardit commented Apr 21, 2020

pip install tensorflow-gpu==1.14.0 will not work for mac because it does not exists on the pypi directory as listed on the link below
https://pypi.org/project/tensorflow-gpu/1.14.0/#files

@mihaimaruseac
Copy link
Collaborator

There is no GPU for mac

@paulinhoAlmeida

This comment has been minimized.

copybara-service bot pushed a commit that referenced this issue Jan 10, 2024
Imported from GitHub PR openxla/xla#8251

Copybara import of the project:

--
152a1fa53fd5cc844ec0673981306807e6187ba0 by Dragan Mladjenovic <Dragan.Mladjenovic@amd.com>:

[ROCm] Fix hipGraph Memcpy nodes on ROCM5.7

Merging this change closes #8251

PiperOrigin-RevId: 597229031
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests