Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tensorflow 1.0 Windows + 64-bit Anaconda 4.3.0 error

Tags:

tensorflow

Following the instructions under "Installing with Anaconda" at https://www.tensorflow.org/install/install_windows, I get to this point and get a failure.

(tensorflow) C:\Users\rallen\Documents\Devel\python\tensorflow>pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/windows/gpu/tensorflow_gpu-1.0.0-cp35-cp35m-win_x86_64.whl tensorflow_gpu-1.0.0-cp35-cp35m-win_x86_64.whl is not a supported wheel on this platform.

This is my environment 64-bit Anaconda3 4.3.0

>python Python 3.6.0 |Anaconda 4.3.0 (64-bit)| (default, Dec 23 2016, 11:57:41) [MSC v.1900 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information.

I previously successfully installed pre-1.0 tensorflow from pip.

like image 237
Roger Allen Avatar asked Feb 16 '17 06:02

Roger Allen


4 Answers

Apparently python 3.5 is very important. Since the latest Anaconda3 distribution is 3.6, you have to do this:

> conda create -n tensorflow python=3.5

and it seems the 1.0 package is available on pip now, so you can just do this:

..> activate tensorflow ...> pip install tensorflow-gpu Collecting tensorflow-gpu Downloading tensorflow_gpu-1.0.0-cp35-cp35m-win_amd64.whl (43.1MB) 100% |################################| 43.1MB 31kB/s Collecting protobuf>=3.1.0 (from tensorflow-gpu) ...

I've successfully run the 'hello world' commands in the python 3.5 shell and tf.__version__ shows as '1.0.0'

like image 189
Roger Allen Avatar answered Oct 31 '22 02:10

Roger Allen


It looks like tensorflow-1.0.0-cp35-cp35m-win_x86_64.whl will fail but tensorflow-1.0.0-cp35-cp35m-win_amd_64.whl works fine for me.

like image 34
Theodore Avatar answered Oct 31 '22 02:10

Theodore


For who using python version 3.6 and anaconda.

conda create -n tensorflow python=3.5
activate tensorflow
pip install tensorflow-gpu
like image 26
Lawrence wong Avatar answered Oct 31 '22 03:10

Lawrence wong


You can see this issue, maybe win_x86_64 should be changed to win_amd64

like image 1
xianyanlin Avatar answered Oct 31 '22 04:10

xianyanlin