在Windows上安装TensorFlow(Python 3.6.x) [英] Installing TensorFlow on Windows (Python 3.6.x)
问题描述
我正在尝试安装 Windows上的TensorFlow .
我尝试使用pip
安装它,但总是收到相同的错误消息:
... is not a supported wheel on this platform.
我首先使用Python 3.5.1进行了尝试,现在我升级到了 3.6.0b4 ,但这没什么区别.
Python:
Python 3.6.0b4 (default, Nov 22 2016, 05:30:12) [MSC v.1900 64 bit (AMD64)] on win32
点:
pip 9.0.1 from ...\python\lib\site-packages (python 3.6)
确切地说,我尝试了以下两个命令:
pip install --upgrade https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-0.12.0rc0-cp35-cp35m-win_amd64.whl
pip install --upgrade https://storage.googleapis.com/tensorflow/windows/gpu/tensorflow_gpu-0.12.0rc0-cp35-cp35m-win_amd64.whl
它们输出以下内容:
> 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.
有人知道如何解决这个问题吗?我不确定我在哪里犯错.
谢谢!
编辑1
顺便说一句,我也尝试了pip install tensorflow
和pip install tensorflow-gpu
,如建议的此处.我得到以下输出:
> 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
2017年11月15日更新
到目前为止,它似乎可以像人们期望的那样工作.使用以下pip
和python
版本运行以下命令应该可以.
使用Python 3.6.x安装
版本
Python :3.6.3
点:9.0.1
安装命令
以下命令基于以下安装指南此处.
使用cmd
C:> pip3 install --upgrade tensorflow // cpu
C:> pip3 install --upgrade tensorflow-gpu // gpu
使用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
其他信息
可以在此处找到列表.您可以在此处中找到成功安装tensorflow cpu的示例控制台输出.
旧响应:
可以结论;使用版本 3.5.2 !
目前,3.5.1和3.6.x均不起作用.
版本:
Python 3.5.2 pip 8.1.1 ..(python 3.5)
命令:
// cpu
C:> pip install --upgrade https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-0.12.0rc0-cp35-cp35m-win_amd64.whl
// gpu
C:> pip install --upgrade https://storage.googleapis.com/tensorflow/windows/gpu/tensorflow_gpu-0.12.0rc0-cp35-cp35m-win_amd64.whl
I'm trying to install TensorFlow on Windows.
I tried to install it with pip
, 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 to 3.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.whl
pip 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 tried pip install tensorflow
and pip install tensorflow-gpu
like suggested here. 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
Update 15.11.2017
It seems that by now it is working like one would expect. Running the following commands using the following pip
and python
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 guide here.
using cmd
C:> pip3 install --upgrade tensorflow // cpu
C:> 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 found here.You can find an example console output of a successful tensorflow cpu installation here.
Old response:
Okay to conclude; use version 3.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:
// cpu
C:> pip install --upgrade https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-0.12.0rc0-cp35-cp35m-win_amd64.whl
// gpu
C:> pip install --upgrade https://storage.googleapis.com/tensorflow/windows/gpu/tensorflow_gpu-0.12.0rc0-cp35-cp35m-win_amd64.whl
这篇关于在Windows上安装TensorFlow(Python 3.6.x)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!