29

I'm trying to installTensorFlow on Windows.

I tried to install it withpip, but I always get the same error message:

... is not a supported wheel on this platform.

I first tried it with Python 3.5.1, now I upgraded to3.6.0b4, but it makes no difference.


Python:

Python 3.6.0b4 (default, Nov 22 2016, 05:30:12) [MSC v.1900 64 bit (AMD64)] on win32

pip:

pip 9.0.1 from ...\python\lib\site-packages (python 3.6)

To be exact, I tried the following two commands:

pip install --upgrade https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-0.12.0rc0-cp35-cp35m-win_amd64.whlpip install --upgrade https://storage.googleapis.com/tensorflow/windows/gpu/tensorflow_gpu-0.12.0rc0-cp35-cp35m-win_amd64.whl

they output the following:

> tensorflow-0.12.0rc0-cp35-cp35m-win_amd64.whl is not a supported wheel on this platform.> tensorflow_gpu-0.12.0rc0-cp35-cp35m-win_amd64.whl is not a supported wheel on this platform.

Does anyone know how to solve this problem? I'm not sure where I'm making a mistake.

Thanks!


Edit 1

Btw, I also triedpip install tensorflow andpip install tensorflow-gpu like suggestedhere. I got the following output:

> Could not find a version that satisfies the requirement tensorflow (from versions: ) No matching distribution found for tensorflow> Could not find a version that satisfies the requirement tensorflow-gpu (from versions: ) No matching distribution found for tensorflow-gpu
askedNov 30, 2016 at 9:32
товіаѕ's user avatar
3
  • 4
    Make sure you install python3.5-64bit.CommentedNov 30, 2016 at 14:01
  • What version of Windows?CommentedNov 30, 2016 at 15:04
  • Since I was just solving this, here's a direct-link to a version of Windows Pythonpython.org/ftp/python/3.5.3/python-3.5.3-amd64.exe that works for me.CommentedMar 13, 2017 at 15:54

22 Answers22

33

Update 15.11.2017

It seems that by now it is working like one would expect. Running the following commands using the followingpip andpython version should work.


Installing with Python 3.6.x


Version

Python: 3.6.3
pip: 9.0.1


Installation Commands

The following commands are based of the following installation guidehere.

using cmd

C:> pip3 install --upgrade tensorflow // cpuC:> pip3 install --upgrade tensorflow-gpu // gpu

using Anaconda

C:> conda create -n tensorflow python=3.5 C:> activate tensorflow(tensorflow)C:> pip install --ignore-installed --upgrade tensorflow(tensorflow)C:> pip install --ignore-installed --upgrade tensorflow-gpu

Additional Information

A list of common installation problems can be foundhere.

You can find an example console output of a successful tensorflow cpu installationhere.


Old response:

Okay to conclude; use version3.5.2 !
Neither 3.5.1 nor 3.6.x seem to work at the moment.

Versions:

Python 3.5.2 pip 8.1.1 .. (python 3.5)

Commands:

// cpuC:> pip install --upgrade https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-0.12.0rc0-cp35-cp35m-win_amd64.whl// gpuC:> pip install --upgrade https://storage.googleapis.com/tensorflow/windows/gpu/tensorflow_gpu-0.12.0rc0-cp35-cp35m-win_amd64.whl

answeredNov 30, 2016 at 15:07
товіаѕ's user avatar
Sign up to request clarification or add additional context in comments.

12 Comments

I also couldn't get this working with 3.6, but 3.5.2 worked perfectly. Saved me a lot of time. Thanks!
see my response - it worked for me on 3.6 - let me know if it's working for you
is there any bug that it will not work in windows 10 64 bit Home edition??
@Aravind I myself have tested it on Windows 10, had no problems at all
@TobiasWürth write something about amd64, many users could download python x86 instead of 64 using such links aspython.org/ftp/python/3.6.3/python-3.6.3.exe (when they should usepython.org/ftp/python/3.6.3/python-3.6.3-amd64.exe)
|
17

If you are using anaconda distribution, you can do the following to use python 3.5 on the new environnement "tensorflow":

conda create --name tensorflow python=3.5activate tensorflowconda install jupyterconda install scipypip install tensorflow# or# pip install tensorflow-gpu

It is important to add python=3.5 at the end of the first line, because it will install Python 3.5.

Source:https://github.com/tensorflow/tensorflow/issues/6999#issuecomment-278459224

answeredMar 27, 2017 at 18:05
Darpan's user avatar

2 Comments

great success !
Thanks! I have anaconda with python 3.6. I followed your instructions and it installed tensorflow. My conda is not set as an environmental variable so I had to be on directory to execute. But now, I don't know where it installed python 3.5. Where does this go? I just can not find it either in anaconda, or on the directory.
6

After searching a lot and trying to install and reinstall Python, i found the solution was very simple

use the following for windows

python -m pip install --upgradehttps://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-0.12.0-py3-none-any.whl

change to following on mac

python3 -m pip install --upgradehttps://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-0.12.0-py3-none-any.whl

for Anaconda use corresponding conda

answeredJul 24, 2018 at 4:42
Lucky's user avatar

4 Comments

It costed me 2 days to find this solution
Latest packages are located here:tensorflow.org/install/pip#package-location
helped me. my config: win10 x64, python 3.6.4
You can find URL for all packages here:tensorflow.org/install/pip#package-location
5

Tensorflow now works with python 3.6.4, don't use python builds that came after 3.6.4 and most importantly tensorflow doesn't work on Python 3.7.2. You can download 3.6.4 for windows from herepython 3.6.4.

Then just simply run pip install tensorflow-gpu

answeredFeb 19, 2019 at 8:35
pranav surampudi's user avatar

Comments

3

At the time of this writing, there is no official support for TensorFlow with Python 3.6 on Windows. The recommendation is to build TensorFlow yourself.

Some people have already done this and provide *.whl files that you can directly install with pip. These are unofficial, so use at your own risk:

You can simply download them and install them withpip install <filename>.whl.

See alsothis GitHub comment.

answeredApr 2, 2017 at 8:19
TheOperator's user avatar

Comments

3

I was having Python 3.6 and was facing the issue as "No module named tensorflow" on "pip install tensorflow". Turned out as my machine was of64 bit while the Python 3.6 version installed was for32 bit. Uninstalled it, reinstalled thePython 3.6 x64 version, pip installed tensorflow, problem solved.

answeredOct 22, 2017 at 10:35

Comments

3

Tensorflow is now supported on Python 3.6. Just make sure that the Python installation is 64 bit on a 64 bit machine and thatpip is the latest (pip install --upgrade pip).

After that (pip install --upgrade tensorflow) works like a charm.

Tom de Geus's user avatar
Tom de Geus
6,0533 gold badges42 silver badges89 bronze badges
answeredMar 7, 2018 at 13:13
brajesh jaishwal's user avatar

Comments

2

Tensorflow indeedsupports Python 3.6.X version, but only for64-bit architecture.Here is the link where you can download Python 3.6.X 64-bit version

answeredNov 5, 2017 at 8:44
Raj Bettaswamy's user avatar

Comments

1

For Pip installation on Windows and 64-bit Python 3.5:

CPU only version:

C:\> pip install --upgrade https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-0.12.0rc0-cp35-cp35m-win_amd64.whl

For the GPU version:

C:\> pip install --upgrade https://storage.googleapis.com/tensorflow/windows/gpu/tensorflow_gpu-0.12.0rc0-cp35-cp35m-win_amd64.whl

References:Tensorflow installation issue on windows "tensorflow_gpu-0.12.0rc0-cp35-cp35m-win_amd64.whl is not a supported wheel on th is platform.".

https://www.tensorflow.org/versions/r0.12/get_started/os_setup.html

Also seetensorflow not found in pip.

answeredNov 30, 2016 at 13:47
Brian O'Donnell's user avatar

3 Comments

since one of your referenced posts is the same as the one I mentioned in the original question, this doesn't help me a lot. the other link doesn't directly mention the solution, but it brought me onto the right track 'cause i thought I might just test every python version. Your answer just says to install Python 3.5, which technically is wrong since 3.5.1 didn't work for me, so it is only the version 3.5.2 and not the whole 3.5 branch. but thanks anyways!
i posted the solution
Good work! I was starting to think it was a minor revision release issue.
1

Tensorflow in Now supporting Python 3.6.0 .....I have successfully installed the Tensorflow for Python 3.6.0
Using this Simple Instruction // pip install -- tensorflow

[enter image description here][1]
[1]:https://i.sstatic.net/1Y3kf.png

Installing collected packages: protobuf, html5lib, bleach, markdown, tensorflow-tensorboard, tensorflow
Successfully installed bleach-1.5.0 html5lib-0.9999999 markdown-2.6.9 protobuf-3.4.0 tensorflow-1.3.0 tensorflow-tensorboard-0.1.5

answeredSep 2, 2017 at 7:46
ashwanidv100's user avatar

Comments

0

Same issue with you .

py3.6xwin10 pro x64pip 9.0.1

Issue message
"Could not find a version that satisfies the requirement tensorflow (from versions: )No matching distribution found for tensorflow"

Maybe you can try py3.5

answeredMar 15, 2017 at 8:56
Aisuko's user avatar

Comments

0

Windows batch file for installing TensorFlow and Python 3.5 on Windows. The issue is that as of this date, TensorFlow is not updated to support Python 3.6+ and will not install. Additionally, many systems have an incompatible version of Python. This batch file should create a compatible environment without effecting other Python installs. See REM comments for assumptions.

REM download Anaconda3-4.2.0-Windows-x86_64.exe (contains python 3.5) from https://repo.continuum.io/archive/index.htmlREM Assumes download is in %USERPROFILE%\Downloads%USERPROFILE%\Downloads\Anaconda3-4.2.0-Windows-x86_64.exeREM change path to use Anaconda3 (python 3.5).PATH %USERPROFILE%\Anaconda3;%USERPROFILE%\Anaconda3\Scripts;%USERPROFILE%\Anaconda3\Library\bin;%PATH%REM update pip to 9.0 or later (mandatory)python -m pip install --upgrade pipREM tell conda where to load tensorflowconda config --add channels conda-forgeREM elevate command (mandatory) and install tensorflow - use explicit path to conda %USERPROFILE%\Anaconda3\scripts\condapowershell.exe -Command start-process -verb runas cmd {/K "%USERPROFILE%\Anaconda3\scripts\conda install tensorflow"}

Be sure the above PATH is used when invoking TensorFlow.

answeredMay 16, 2017 at 15:19
BSalita's user avatar

Comments

0

Follow these steps to installternsorflow:

(step 1)   conda create -n py35 python=3.5(step 2)   activate py35(step 3)   conda create -n tensorflow(step 4,only for GPU)   pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/windows/gpu/tensorflow_gpu-1.1.0-cp35-cp35m-win_amd64.whl
thewaywewere's user avatar
thewaywewere
8,69611 gold badges46 silver badges48 bronze badges
answeredMay 31, 2017 at 0:56
pottergxy's user avatar

Comments

0

Just foundTensorflow 1.1 forpython 3.6 on windows x64 (including GPU version, but i tested only cpu):http://www.lfd.uci.edu/~gohlke/pythonlibs/#tensorflow. Unofficial apparently, but worked for me when I import tensorflow or tflearn in my code. They have scipy for windows there and bunch of other packages.

For some reason pip install URL returns code 404, so the installation would be the following:

1) Download protobuf whl package from here:http://www.lfd.uci.edu/~gohlke/pythonlibs/vu0h7y4r/protobuf-3.3.0-py3-none-any.whl

2)pip install {DownloadFolder}\protobuf-3.3.0-py3-none-any.whl

3) Download TF whl file:http://www.lfd.uci.edu/~gohlke/pythonlibs/vu0h7y4r/tensorflow-1.1.0-cp36-cp36m-win_amd64.whl

4)pip install {DownloadFolder}\tensorflow-1.1.0-cp36-cp36m-win_amd64.whl

It worked for me.

answeredJun 2, 2017 at 19:28
Philipp Munin's user avatar

Comments

0

For someone w/ TF 1.3:

CurrentTensorFlow 1.3 supportPython 3.6, and then you needcuDNN 6 (cudnn64_6.dll)

Based onTensorflow on windows - ImportError: DLL load failed: The specified module could not be foundand this:https://github.com/tensorflow/tensorflow/issues/7705

answeredAug 21, 2017 at 23:39
martin-voj's user avatar

Comments

0

On 2/22/18, when I tried the official recommendation:

pip3 install --upgrade tensorflow

I got this error

Could not find a version that satisfies the requirement tensorflow

But instead using

pip install --upgrade tensorflow

installed it ok. (I ran it from the ps command prompt.)

I have 64-bit windows 10, 64-bit python 3.6.3, and pip3 version 9.0.1.

answeredFeb 22, 2018 at 20:29
thund's user avatar

Comments

0

Tensor flow on 32 bit machine.

There is no official build out for 32 bit, but still there is a workaround for that, follow the linkhttp://cudamusing.blogspot.in/2015/11/building-tensorflow-for-jetson-tk1.html. I would not suggest doing this big reason is its not possible to follow the process every time there is a change in official tensor flow code.

answeredMar 16, 2018 at 6:29
brajesh jaishwal's user avatar

Comments

0

I had the same issue, but I followed the following steps:-

  1. I had Python 3.6.5 (32 bit) installed on my desktop, but from all the research I did, I could conclude that Tensorflow runs only on Python 3.5x or 3.6x 64 bit versions. So I uninstalled it and Installed Python 3.5.0 instead.
  2. I ran Python 3.5.0 as an administrator. This step is necessary for Windows as, without it, the system doesn't get any privileges and can't install tensorflow.
  3. Install Pip3 using command:- python -m pip install --upgrade pip
  4. Once the newest version (10.0.1 in my case) is installed, you can install tensorflow usin command:- pip3 install --upgrade tensorflow
  5. Your tensorflow will be downloaded and installed. For further help on how to run tensorflow programs, go tohttps://www.tensorflow.org/get_started/premade_estimators
answeredMay 30, 2018 at 4:10
Suu Chuck's user avatar

Comments

0

https://i.sstatic.net/1Y3kf.png

pip install -- tensorflow This worked for me for this version of pythonPython 3.6.4 : : Anaconda, Inc.

answeredJun 22, 2018 at 9:43
Nita Pai's user avatar

Comments

0

Tensorflow is not compatible with python3.7 and spyder3.3.1

To work with stable tensorflow version

follow the procedure

windows-->search-->Anaconda prompt-->right click -->click Run as adminstrator

Below command create the virtual environment which does not disturb existing projects

conda create -n projectname

Below command activates your virtual environment within this directory installed package will not disturb your existing project.

activate projectname

Below command installs python 3.6.7 and spyder 3.2.3 as well

conda install spyder=3.2.3

Below mentioned tensorflow version works without any error. As per your need, you can install tensorflow version specifically.

pip install tensorflow==1.3.0

To open spyder

spyder

To exit form Virtual environment

deactivate
answeredNov 2, 2018 at 5:19
Ramisha Rani K's user avatar

Comments

0

For the GPU version, see my answerhere.

In short, install Anaconda, then open an anaconda terminal and typeconda create --name tf_gpu tensorflow-gpu

You are then free to use the conda environmenttf_gpu

answeredJul 31, 2019 at 0:34
kkica's user avatar

Comments

-1

Tensor flow has only support for python 2.7 3.4 3.5 Other python versions are not supported So you please install the supported python version and try it again.The official link ishttps://www.tensorflow.org/install/install_linux#InstallingAnacondaIt provides how to install it with anaconda .This will help you

answeredFeb 25, 2017 at 18:22
Sasidaran k's user avatar

Comments

Your Answer

Sign up orlog in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

By clicking “Post Your Answer”, you agree to ourterms of service and acknowledge you have read ourprivacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.