我想安装TensorFlow on Windows个.

我试图用pip安装它,但总是收到相同的错误消息:

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

我第一次try 使用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)

确切地说,我try 了以下两个命令:

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.

有人知道如何解决这个问题吗?我不确定我在哪里犯了错误.

谢谢


Edit 1

顺便说一句,我也试过pip install tensorflowpip install tensorflow-gpu,比如here.我得到了以下输出:

> 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

到目前为止,它的工作方式似乎与人们预期的一样.使用以下pippython版本运行以下命令应该可以.


Installing with Python 3.6.x


版本

Python: 3.6.3
pip: 9.0.1


安装命令

以下命令基于以下安装指南here.

使用cmd

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

使用水 Python

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 

其他信息

A list of common installation problems can be found here.

您可以找到tensorflow cpu安装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.

版本:

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

Python-3.x相关问答推荐

根据其他数据框架的列顺序从数据框架中进行 Select

如何在Django中创建两个不同权限的用户?

在numpy. linalg的qr之后使用scipy. integrate中的solve_ivp时出现了一个奇怪的错误

Numpy argmin()以查找最近的元组

文件名中的文件打开和撇号

PySpark每毫秒使用先前的值填充数据

Pandas 根据条件增加Dataframe列

如何将日期时间索引写入日期类型的表?

我想使用命令提示符安装 cv2

使用 OpenCV 从图像中减go 一条线

Python - 使用 OpenCV 将字节图像转换为 NumPy 数组

Python socket.error: [Errno 13] 权限被拒绝

Python 3 list(dictionary.keys()) 引发错误.我究竟做错了什么?

Python 错误:IndexError:字符串索引超出范围

如何在 Python 3 中通过 IP 获取 WhoIs 信息?

try 注释散列变量时,ABCMeta对象不可下标

Anaconda 中的依赖项和包冲突?

为什么中断比引发异常更快?

为什么 string.maketrans 在 Python 3.1 中不起作用?

TypeError:多个基地有实例布局冲突