Tensorflow not getting installed with pip - python

I keep getting errors like;
ERROR: Could not find a version that satisfies the requirement tensorflow (from
versions: none)
ERROR: No matching distribution found for tensorflow
ERROR: Could not find a version that satisfies the requirement tensorflow==2.0.0
(from versions: none)
ERROR: No matching distribution found for tensorflow==2.0.0
ERROR: Could not find a version that satisfies the requirement tensorflow==2.2.0
rc4 (from versions: none)
ERROR: No matching distribution found for tensorflow==2.2.0rc4
I have tried searching for a solution since 4 to 5 hours. I am trying to install it in a virtualenv file.
This has never happened before.
What am I doing wrong?
Pip version: 20.2.3
Pip3 version: 20.2.3
Python version: Python 3.7
Windows: 8.1 64 bit
Tensorflow version I want to install: 2.x+

According to the PIP tensorflow file listing it should work. Are you are sure you are using a 64-bit python interpreter? If your python interpreter is 32 bit for some reason, it's going to need a 32 bit package.
The packages are not built for Windows 32 bit.
If this is your problem, you should install a 64 bit version of the Python interpreter.

Please verify that your python installation is 64 bit by using the following script:
import platform
platform.architecture()[0]
the script should return '64bit'. if not, install the correct version.
Also, if you wish to use tensorflow 2.2 and above, upgrade to python 3.8 or higher.

TensorFlow is compiled with recent processor. I had problems with this and I had to verify the processor flags (and recompile myself, pff).
Windows 8.1 is surely obsolete

Related

ERROR: Could not find a version that satisfies the requirement tensorflow-directml

I tried to install:
pip install tensorflow-directml
from directml on my Windows 10. I have an intel GUP and I was hoping I could use it. But I got the error:
ERROR: Could not find a version that satisfies the requirement tensorflow-directml (from versions: none)
ERROR: No matching distribution found for tensorflow-directml
Did I miss something?
EDIT:
I'm using python 3.8
Seems that the library supports Python 3.5, 3.6 and 3.7. Python3.8 is not supported at the moment (1). Is your pip installation connected to any of those versions? Try using pip --version to confirm to which Python version it is connected. In case that it shows a Python 2 version, try using pip3 install tensorflow-directml.

Tensorflow installing error: __ is not a supported wheel on this platform

I'm trying to install tensorflow on my PC but I keep getting errors.
I have seen multiple posts about tensorflow installing errors online but all I found was solutions saying that the version of python was not compatible. However, I am using python 3.8 and I am using the URL for python 3.8 provided on tensorflow's website, so I don't see how that could be the issue.
The command I'm using:
python -m pip install --upgrade https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow_cpu-2.2.0-cp38-cp38-win_amd64.whl
The error I'm getting:
ERROR: tensorflow_cpu-2.2.0-cp38-cp38-win_amd64.whl is not a supported wheel on this platform.
I'm using python 3.8, pip 20.1.1 and my PC is running 64 bit Windows 10.
From tensorflow's website, the requirements are :
Python 3.5-3.8
pip 19.0 or later
Windows 7 or later
Which are all satisfied.
Why am I getting this error?
EDIT: using only pip install tensorflow gets me the following errors:
ERROR: Could not find a version that satisfies the requirement tensorflow (from versions: none)
ERROR: No matching distribution found for tensorflow
It's likely you're using the 32bit version of python 3.8 instead of the 64bit version. You can check by opening the interpreter and looking at the first line. If it has 32 bit (Intel) or something similar, then it would be the 32 bit version. To get the 64bit edition, scroll down to Files on this link https://www.python.org/downloads/release/python-380/ and pick up the x86-64 version.

Torch installation results in not supported wheel on this platform

Tried running pip3 install torch===1.4.0 torchvision===0.5.0 -f https://download.pytorch.org/whl/torch_stable.html first, taken from PyTorch website
which resulted in
No matching distribution found for torch===1.4.0
and Could not find a version that satisfies the requirement torch===1.4.0 (from versions: 0.1.2, 0.1.2.post1, 0.1.2.post2)
Finally downloaded the .whl file from downloads page and tried installing locally like so 'C:\Users\Raf\AppData\Local\Programs\Python\Python38\Scripts\pip.exe' install torch-1.4.0+cpu-cp37-cp37m-win_amd64.whl
after which I get torch-1.4.0+cpu-cp37-cp37m-win_amd64.whl is not a supported wheel on this platform.
using 64 Python 3.8, on 64 bit Windows
using 64 Python 3.8
but you downloaded the cp37 whl which is for python 3.7. There is currently no whl file available for python 3.8. So either install from source (probably not recommended), install a different python version or create a virtual environment with python 3.7
Update
There is now: https://download.pytorch.org/whl/cpu/torch-1.4.0%2Bcpu-cp38-cp38-win_amd64.whl
I faced the similar issue, even if your python version is correct you can still face this problem if you had install 32x instead of 64x
If it is 32-bit you will face the same problem.
To check the bit version of python on your system run this
python -c "import struct;print( 8 * struct.calcsize('P'))"
This will return 32 or 64
If it returns 32 change it to 64 and reinstall the PyTorch
https://www.python.org/downloads/windows/

PyTorch not downloading

I go to the PyTorch website and select the following options
PyTorch Build: Stable (1.2)
Your OS: Windows
Package: pip
Language: Python 3.7
CUDA: None
(All of these are correct)
Than it displays a command to run
pip3 install torch==1.2.0+cpu torchvision==0.4.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
I have already tried to mix around the the different options but none of them has worked.
ERROR: ERROR: Could not find a version that satisfies the requirement torch==1.2.0+cpu (from versions: 0.1.2, 0.1.2.post1, 0.1.2.post2)
ERROR: No matching distribution found for torch==1.2.0+cpu
I tried to do pip install pytorch but pytorch doesn't support pypi
I've been in same situation.
My prob was, the python version... I mean, in the 'bit' way.
It was 32 bit that the python I'd installed.
You should check which bit of python you installed.
you can check in the app in setting, search python, then you will see the which bit you've installed.
After I installed the 64 bit of Python, it solved.
I hope you figure it out!
environment : win 10
It looks like it can't find a version called "1.2.0+cpu" from it's list of versions that it can find (0.1.2, 0.1.2.post1, 0.1.2.post2). Try looking for one of those versions on the PyTorch website.
So it looks like I cant install PyTorch because I am running python 32-bit. This may or may not be the problem but this is the only possible error that I could see this being the cause.

Could not find a version that satisfies the requirement tensorflow (from versions:) No matching distribution found for tensorflow

While installing TensorFlow for my pc the following error appeared
Could not find a version that satisfies the requirement TensorFlow
(from versions:) No matching distribution found for TensorFlow
I have a 64-bit Widows operating system.
And Python 3.7.0 64-bit. I already updated my pip from version 10.0 to 18.0 still error remains the same.
Try with Python 3.6
From tensorflow, It doesn't show support for Python 3.7 yet. So maybe that's the issue. Although Python 3.7 has been released there are some Issues regarding the import because of the async variable, And even this thread shows the same solution. Is python 3.7.x supported with Tensorflow. So suggest you downgrade to Python 3.6 (64bit) and try again.
Refer the link for TensorFlow supported version for python
https://www.tensorflow.org/install/pip
upgrade pip to version 20
C:\>pip --version
pip 20.0.2 from c:\python37_64\lib\site-packages\pip (python 3.7)
then execute the following command
C:\>pip install https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow_cpu-2.1.0-cp37-cp37m-win_amd64.whl
or
C:\>pip install tensorflow
Then check for the packages installed
C:\>pip list
If you get this error:
ERROR: Could not find a version that satisfies the requirement tensorflow== (from versions: 0.12.1, ...)
ERROR: No matching distribution found for tensorflow==
Check your comment. If there is a space between '==' and TensorFlow version, you will get an error. Below you can see an example for installing Tensorflow 1.15.
Wrong one:
pip install tensorflow== 1.5
Correct one:
pip install tensorflow==1.15

Categories