2
votes

I'm trying to install tensorflow-gpu where the version is 2.0.0-alpha0. I've tried these two specific commands:

pip install tensorflow-gpu==2.0.0-alpha0
pip install -U --pre tensorflow-gpu==2.0.0-alpha0

pip says:

Collecting tensorflow-gpu==2.0.0-alpha0
Could not find a version that satisfies the requirement tensorflow-gpu==2.0.0-alpha0 (from versions: )
No matching distribution found for tensorflow-gpu==2.0.0-alpha0

However the tensorflow-gpu page on pypi definitely has version 2.0.0-alpha0. I know I can build from source or download the package directly from pypi, but I'd prefer to understand why this is happening.

What am I doing incorrectly? I've also tried the above commands with pip 18.1 and 19.0.3 to the same end.

I read the pip docs and found the following:

Starting with v1.4, pip will only install stable versions as specified by pre-releases by default.

The pip install command also supports a –pre flag that enables installation of pre-releases and development releases.

--pre Include pre-release and development versions. By default, pip only finds stable versions.

1
Which pip do you use? (>>which pip)Vlad
Alpha versions of packages are often not uploaded to the main repositories pip draws from. I'm guessing that this is the problem here. - could it be that you need to do something explicit to gain access to the repository containing this version?CryptoFool
I'm using 19.0.3 in one env and 18.1 in another. neither seem to change the behavior. I've also updated the question to include another command I tried (it should be trying to get pre versions of the package).Joe B
What's your Python version? It might not support Python 3.7.xdurch0
My bad and you mentioned below your on MAC OS I might be mis interperting the tensor flow documents but doesn't it say " macOS 10.12.6 (Sierra) or later (no GPU support) "tensorflow.org/install so it may not work I feel like I would use an Ubuntu VM maybe and try ?smitty_werbenjagermanjensen

1 Answers

2
votes

The actual version is 2.0.0a0, not 2.0.0-alpha0. You want:

pip install --pre tensorflow-gpu==2.0.0a0

You also need to run this on a compatible Windows or Linux system. The project only publishes releases for:

  • Linux, for Python 2.7, 3.3, 3.4, 3.5, 3.6, and 3.7, with x86_64 CPU
  • Windows, for Python 3.5, 3.6, 3.7, with amd64 CPU