简体   繁体   中英

TensorFlow on Windows: “not a supported wheel on this platform” error

Was happy to know Tensorflow is made available for Windows and we don't have to use Docker.

I tried to install as per instructions but I get this error.

pip install --upgrade https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-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.

What does that error mean?

I am running latest version of Python.

python --version Python 3.5.2

This is most likely to be a 64-bit versus 32-bit issue. The pre-built TensorFlow pip package is 64-bit only, but the default version of Python 3.5.2 on Python.org is 32-bit. You can download the 64-bit release from here (select one of the "Windows x86-64" options).

It's only available for Python 3.5.x not 3.6.

You can quickly create a 3.5 environment with: conda create -n tensorflow python=3.5

You must have a 3.5.x version of Python. The 3.6 version won't work. If you have installed an Anaconda that contains Python 3.6, you need to downgrade its Python to 3.5.2.

Open the Anaconda Prompt as administrator, and run:

conda install python=3.5.2

After the installation is finished, you can follow the rest of the steps on tensorflow website .

Do you have Python and Anaconda installed? I had a similar issue until I uninstalled Anaconda and then the setup was fine.

I did the following steps and it worked.(Anaconda 4.4 x64)

1- Go to Windows 10 command prompt (right click and Run as admin)
2- if activated the path, you can run conda anywhere, if not, should go to .../anaconda3/scripts and run conda command from there and do the following (the main trick was to change 35 to 36)
1- conda -n tensorflow python=3.5
2- activate tensorflow
3- pip install --upgrade https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-0.12.0rc0-cp3 6 -cp3 6 m-win_amd64.whl

当我使用下面的conda install python = 3.5.2将降级从3.6降级到3.5时修复了问题

There can be two reasons:

1) You are using 32-Bit python package. Tensorflow does not support 32 bit, only 64 fit. Check in your system settings for this. If this is fine refer to second point..

2)You are using Python 3.7. Python 3.7 isn't eventually officially supported by Python. It's still in beta testing, and very much under active development.

Consider downgrading to a lower version of python. For now, stick with Python 3.6 or 3.5.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM