在 Windows 上安装 TensorFlow (Python 3.6.x) [英] Installing TensorFlow on Windows (Python 3.6.x)

查看:32
本文介绍了在 Windows 上安装 TensorFlow (Python 3.6.x)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试安装 Windows 上的 TensorFlow.

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

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

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

我第一次尝试使用 Python 3.5.1,现在我升级到 3.6.0b4,但没有任何区别.

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

蟒蛇:

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

点:

pip 9.0.1 from ...pythonlibsite-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

他们输出以下内容:

> 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.

谢谢!


编辑 1

顺便说一句,我也试过 pip install tensorflowpip install tensorflow-gpu 就像建议的 此处.我得到以下输出:

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

推荐答案

更新 15.11.2017

现在它似乎像人们预期的那样工作.使用以下 pippython 版本运行以下命令应该可以工作.

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.

Python:3.6.3
pip:9.0.1

Python: 3.6.3
pip: 9.0.1

<小时>

安装命令

以下命令基于以下安装指南此处.

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

使用蟒蛇

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.

您可以在此处找到成功安装 tensorflow cpu 的控制台输出示例.

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

好的结束;使用版本 3.5.2
目前 3.5.1 和 3.6.x 似乎都不起作用.

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)

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

这篇关于在 Windows 上安装 TensorFlow (Python 3.6.x)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆