Tensorflow Wheel Install not Supported - tensorflow

pip install --upgrade https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-0.12.1-cp35-cp35m-win_amd64.whl
In Anaconda3, Im trying to install the wheel but it is not working. On Windows. Using Python 3.6. There isnt a 3.6 wheel. I get this error:
tensorflow-0.12.1-cp35-cp35m-win_amd64.whl is not a supported wheel on this platform.

Use an alternative tensorflow wheel for Python 3.6:
pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/windows/gpu/tensorflow_gpu-1.2.0rc2-cp36-cp36m-win_amd64.whl

UPDATE: TensorFlow from version 1.2 forward officially supports Python 3.6
There is no wheel for Python 3.6 for currently not being supported on Windows yet.
As you can see here, Python 3.6 support on Windows is a work in progress.
The only alternative to use TensorFlow on Windows with Python 3.6 is to build it from source.

I also encountered the same problem.
Before they update TensorFlow.
You can try to download the historical version of his 2016-9-27 on this website.

Just change your python version to 3.5 and then retry installing tensorflow. Tensorflow is only compatible with Python 3.5
conda install python=3.5
and then
pip install --upgrade https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-0.12.1-cp35-cp35m-win_amd64.whl

Related

Tensorflow support for Python3.11

I have Python3.11.0 on a Windows10 PC.
Trying to install tensorflow using:
pip install tensorflow
gives error. Upon visiting the tensorflow site I realised that it supports only 3.7 - 3.10
Should I downgrade the python version or is any workaround available?
Yes, you should downgrade python to < 3.11 until the wheels are updated to support python 3.11
Yes, you could create a conda environment using python 3.10 to use tensorflow. Here's a link with instructions to follow : https://www.tensorflow.org/install/pip#macos
tensorflow currently supports from python 3.7 - 3.10 4

How do I upgrade to python 3.8 on Colab?

I have tried:
https://stackoverflow.com/questions/16769109/upgade-python-version-using-pip#:~:text=pip%20is%20designed%20to%20upgrade,but%20use%20an%20installer%20instead.&text=Basically%2C%20pip%20comes%20with%20python%20itself.
Install Python 3.8 kernel in Google Colaboratory
https://kegui.medium.com/how-to-install-mlfinlab-without-error-messages-896e2fb43c2f
None of the proposed solutions work.
I'm struggling to update colab python to 3.8. pip is designed to upgrade python packages and not to upgrade python itself. pip shouldn't try to upgrade python when you ask it to do so. Don't type pip install python but use an installer instead. Basically, pip comes with python itself.
MlFinlab has relaxed the hard versioning so you can now install on Colab :)

Install tensorflow version 0.12

How can i install the tensorflow 0.12 on windows x64 CPU.
If it is nowhere to be found
I tried to install through pip for python 3.6. Did not work out
pip install --user install tensorflow==0.12
Also tried this command with python 3.5, but nothing happened either
tensorflow 0.12.0 was only released for Python 3.5, not 3.6
tensorflow 0.12.1 was released for Python 3.6 but only on Linux and MacOS.
If you instist on installing version 0.12 your best bet is to try tensorflow 0.12.1 installed for Python 3.5:
py -3.5 -m pip install tensorflow==0.12.1
The only version 0.X available on pypi is the 0.12.1 for python 3.6, hence you can run
pip install tensorflow==0.12.1
Although the thread is about windows system but sharing it for the ubuntu users as well. That's how I downloaded it in my ubuntu 1804 system after following the comment of #phd,
created a conda enviornment using python 3.5
conda create -n tf012 python=3.5
and then installed TF 0.12 with pip install tensorflow==0.12

TensorRT python package incompatibility with python 3.6

Installing TensorRT 4 from its tar file is the only available option if you installed CUDA using the run file. However, the tar file only includes python TensorRT wheel files for python 2.7 and 3.5. No python 3.6 wheel file provided.
I cannot force install the python 3.5 wheel file on my python 3.6 system:
$ pip install tensorrt-4.0.0.3-cp35-cp35m-linux_x86_64.whl
tensorrt-4.0.0.3-cp35-cp35m-linux_x86_64.whl is not a supported wheel on this platform.
Also, I cannot create a new python 3.5 virtualenv just to use TensorRT.
Is there a way to manually install this package on my python 3.6 platform by manually copying the files?
Yes, you can rename this file to tensorrt-4.0.0.3-cp36-cp36m-linux_x86_64.whl and try again.
It works.
Please use python version 3.5.5. I had same issue with python version 3.6. Latest version of tensorflow works with python 3.5. If you are using anaconda use conda shell to activate earlier python version. You can set environment to use earlier version of python.

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-cp36-cp36m-win_amd64.whl
issues fixed when i did the downgrading from 3.6 to 3.5 using the below
conda install python=3.5.2
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.