No matching distribution found for tensorflow - tensorflow

I am getting the error below when trying to install tensorflow for python in pip3 on Windows 10 Home. I will try installing via Anaconda next but does anyone know if tensorflow will work with python 3.6.4? (My system is pretty old.)
Error:
"Could not find a version that satisfies the requirement tensorflow (from versions: ) No matching distribution found for tensorflow"
The command I am using is:
pip3 install --upgrade tensorflow
Currently I have python version 3.6.4
Other Info:
Windows 10 Home
Python 3.6.4 (v3.6.4:d48eceb, Dec 19 2017, 06:04:45) [MSC v.1900 32 bit (Intel)]
Processor: AMT Phenom(tm) Quad-Core Processor 2.4GHz

Upgrading from python 32 bits to Python 3.4, 3.5 or 3.6 (64 bits) worked for me.
How to check if your installed Python is 64 bits:
https://stackoverflow.com/a/41084963/3212785

I had the same issue, later figured out it has to do something with pip3 version.
Try running:
To upgrade pip3 version
pip3 install --upgrade pip
Then try:
pip3 install tensorflow==2.2
It's upon you which version of tensorflow you want to install

For those passing by and having the same error you may need to:
downgrade/upgrade python version so that it fits in the supported interval - from what I've read tensorflow usually supports the latest version available on ubuntu and a bit before which is right now one version lower (3.5-3.8 instead of 3.9)
upgrade python to a 64bit version
Hope this helped, downgrading worked for me
Source: https://www.tensorflow.org/install

Related

Can not make Tensorflow work with pypy3 and conda. Invalid ELF

I want to try tensorflow inside pypy. I tried a few days and no luck. Following is the detail.
I am using UBuntu 18.04.
I install conda.
I install pypy through conda, conda install -c conda-forge pypy3.6
I got No matching distribution found for tensorflow if I tried pypy3 -m pip install tensorflow
I got invalid ELF header when I run my python code if I tried pypy3 -m pip install --upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.14.0-py3-none-any.whl
I even try to install tensorflow I build but I got not a supported wheel on this platform. The Tensorflow I build can be installed in python3.6 just not in pypy3.
I think the problem is python version different but I don't know hwo to fix it. I notice the python version is slightly different between my python and pypy3.
I don't know how to make those two python 3.6.9 identical. Build pypy from source myself?
(pypy3) joseph#joseph-Ubuntu:~/scripts$ python
Python 3.6.9 |Anaconda, Inc.| (default, Jul 30 2019, 19:07:31)
[GCC 7.3.0] on linux
(pypy3) joseph#joseph-Ubuntu:~/scripts$ pypy3
Python 3.6.9 (5da45ced70e515f94686be0df47c59abd1348ebc, Oct 18 2019, 07:48:38)
[PyPy 7.2.0 with GCC 7.3.0] on linux
Or is there is other way to solve this problem?
Or Not to use conda?
Thanks
Joseph
You have to somehow get tensorflow compiled for PyPy, you cannot reuse one for CPython. So far there is no binary available, and I would not advise anyone to try to recompile tensorflow, it is quite hard. So I think for now sticking with CPython for tensorflow is the best course of action.

Installing tensorflow extended python 3 on windows

I tried to pip install tfx==0.13.0 on windows 10 machine and I get this error has anyone been able to pip install tfx==0.13.0
Could not find a version that satisfies the requirement ml-metadata<0.14,>=0.13.2 (from tfx==0.13.0) (from versions: 0.12.0.dev0, 0.13.0.dev0, 0.13.1.dev0) No matching distribution found for ml-metadata<0.14,>=0.13.2 (from tfx==0.13.0)
As suggested by Tensorflow Support in comments TFX does not support windows as of now.
Curently it supports both Linux and MacOS only.
Latest stable tfx version is 0.25.0 and tested python versions are 3.6 and 3.7.

How to install tensorflow-1.12.0-cp36-cp36m-win_amd64.whl on Windows 10 running i7 64 bit processor

I am trying to take an online course that requires me to install tensorflow. According to pyPI tensorflow only runs under 64 bit environments. I have 3.6 (64 bit) and 3.7 (64 bit) installed on a Windows 10 device running an i7 processor. pip install tensorflow-1.12.0-cp36-cp36m-win_amd64.whl returns a '...is not a supported wheel on this platform' under both 3.6 and 3.7 environments.
Interestingly, thought I have updated pip to 19.0.1 (at least it says it successfully did so), I am still getting the message that I need to upgrade my pip version.
This is what you are looking for.
Make sure you have updated pip first to enable wheel support:
pip install --upgrade pip
and then:
pip install C:/some-dir/tensorflow-1.12.0-cp36-cp36m-win_amd64.whl
You can also try using anaconda and install TensorFlow in an conda environment. This will capsulate your online course from the rest of your system and is quite a good habit when working with multiple projects.

tensorflow not supported wheel on this platform

I've searched around and non of the solutions seem to pertain to me, so here I am.
I installed anaconda 5.1 for python 3.6, I downloaded and installed 64-Bit(x86)Installer(551 MB)
from
https://www.anaconda.com/download/#linux
I followed the directions here
https://docs.anaconda.com/anaconda/install/linux
I had the install prepend the path and install microsoft VS code.
I then attempt to install the CPU only tensorflow using anaconda as suggested here
https://www.tensorflow.org/install/install_linux#InstallingAnaconda
I try to install the binary for python 3.6 CPU only
https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.6.0-cp36-cp36m-linux_x86_64.whl
I get the following error
tensorflow-1.6.0-cp36-cp36m-linux_x86_64.whl is not a supported wheel on this platform.
I am running a Ubuntu 16.04 VM on windows 10.
edit: when I run this command
pip install --ignore-installed --upgrade tfBinaryURL
outside of the tensorflow environment it worked.
2nd edit:
Additionally I explored my tensorflow environment in my anaconda3 folder, and I noticed it only has python 2.7, so when I tried to install the cpu only tensorflow while in the enviroment for python 2.7 it worked.

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.