python3.6.0安装tensorflow,在Windows(Python 3.6.x)上安装TensorFlow

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

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值