我正在尝试安装 TensorFlow on Windows .
我尝试使用 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
就像建议的 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
最佳答案
2017 年 11 月 15 日更新
现在看来,它的工作方式与人们预期的一样。使用以下 pip
和 python
版本运行以下命令应该可以工作。
使用 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
使用 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
附加信息
可以找到常见安装问题列表 here .您可以找到成功安装 tensorflow cpu 的示例控制台输出 here .
旧响应:
好的,结束;使用版本 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
关于python - 在 Windows 上安装 TensorFlow (Python 3.6.x),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40884668/