Installing previous version of tensorlfow on windows using pip - python

How do I install a specific version of tensorflow on windows ?(I'm using pip 20.1.1 and python 3.8)
I've tried the command
pip install tensorflow==1.14.0
I get the following error
ERROR: Could not find a version that satisfies the requirement
tensorflow==1.14.0 (from versions: none) ERROR: No matching
distribution found for tensorflow==1.14.0
I've also tried using to install it by downloading the .whl file by running the command
pip install C:\Users\Admin\Downloads\tensorflow-1.14.0-cp37-cp37m-win_amd64.whl
Here I get this error
ERROR: tensorflow-1.14.0-cp37-cp37m-win_amd64.whl is not a supported
wheel on this platform.

You're on the right track by downloading the wheel file, but you need to use python 3.7. cp37 in the wheel filename indicates that it was built for CPython 3.7.
Once you have python 3.7, you can also pip install tensorflow==1.14.0. You can see the list of available wheels at https://pypi.org/project/tensorflow/1.14.0/#files

So far, Tensorflow isn't supported for Python v3.8
To make use of tensorflow, you need to download previous versions of python.
About the wheel file you downloaded a file for v3.7 and trying to install with v3.8 which is why you get is not a supported wheel on this platform.
EDIT:
Python 3.8 supports Tensorflow v2 but not v1.

Related

pip does not find the version of the package to install

I want to install pytorch3d version 0.3.0 or above, but pip sees only 0.0.1 version for installing. I runned next commands:
pip install pytorch3d==0.3.0
And got the next error:
ERROR: Could not find a version that satisfies the requirement pytorch3d==0.3.0 (from versions: 0.0.1)
ERROR: No matching distribution found for pytorch3d==0.3.0
If I run the install command without a specific version, pip will install the package with version 0.0.1.
My environment:
Windows 10 x64
Python 3.9.7
pip 21.2.4
Note:
direct internet connection, no proxy used
I haven't others versions python on pc
same errors when installing next packages: torchvision==0.7.0, torch==1.6.0
I tried with the virtualenv and without them
I installed Python from the windows store.
From their installation guide and your requirements use:
pip install pytorch3d -f https://dl.fbaipublicfiles.com/pytorch3d/packaging/wheels/py38_cu102_pyt190/download.html
Specified package cannot be installed via pip, because not supported on my os(Windows 10). This can be seen on the page with the version and available files for download of the required package.

"Pyaudio" pip install fails for every package even after upgrading pip

I downloaded the package PyAudio-0.2.11-cp39-cp39-win_amd64 and copied it in the script file in python 3.9 directory, but when i tried to install the pack pip throws me errors
ERROR: No matching distribution found for PyAudio-0.2.11-cp39-cp39-win_amd64
I tried to upgrade pip as a solution that i found it here in Stack :
pip install --upgrade pip
then:
pip install PyAudio-0.2.11-cp39-cp39-win_amd64
but pip keeps failing with an this Error :
ERROR: Could not find a version that satisfies the requirement PyAudio-0.2.11-cp39-cp39-win_amd64
`ERROR: No matching distribution found for PyAudio-0.2.11-cp39-cp39-win_amd64`
I also tried
pip install pipwin
pipwin install pyaudio
is there any other solutions please ?
Maximum officially supported version of python for pyaudio is 3.6; quoting from the Installation page:
Microsoft Windows
Install using pip:
python -m pip install pyaudio
Notes:
If pip is not already bundled with your installation of Python, get it
here. pip will fetch and install PyAudio wheels (prepackaged
binaries). Currently, there are wheels compatible with the official
distributions of Python 2.7, 3.4, 3.5, and 3.6. For those versions,
both 32-bit and 64-bit wheels are available.
You could read about installing different versions of the python on your machine and use it with 3.6 version of python without any errors

Can't install Tensorflow with wheel file

I am trying to install tensorflow. I have python 3.6.4 and am running Windows 10 64bit.
First I tried these two methods:
pip3 install tensorflow
pip3 install --upgrade tensorflow
But I got the error:
Collecting tensorflow
Could not find a version that satisfies the requirement tensorflow (from versions: )
No matching distribution found for tensorflow
Then I tried to use the wheel file to install tensorflow. I saved the wheel file in the same folder as python 3.6. The wheel file I used was:
tensorflow-1.12.0-cp36-cp36m-win_amd64.whl
And I got the error:
tensorflow-1.12.0-cp36-cp36m-win_amd64.whl is not a supported wheel on this platform.
I looked at the tensorflow installation guide and I don't understand what I'm doing wrong.
P.S. I also have python 2.7 installed. I use 'python' and 'pip' for python 2.
And I use 'py' and 'pip3' for python 3.

Installing packages with older version of Python

I have Python 3.7, which currently doesn't support Tensorflow.
So I installed Python 3.6.7, went to the command line and typed in py -m pip install tensorflow, and still got the same error:
Could not find a version that satisfies the requirement tensorflow (from versions: ). No matching distribution found for tensorflow
What can I do ensure that I'm trying to install Tensorflow using Python 3.6.7?
Browsing the documentation: https://docs.python.org/3/installing/index.html
The solution is to invoke version 3.6 by specifying it as follows:
py -3.6 -m pip install tensorflow

googlemaps-2.4.3-py2-none-any.whl is not a supported wheel on this platform

I am trying to install googlemaps module (from here). using:
pip install "googlemaps-2.4.3-py2-none-any.whl"
I get the following error:
googlemaps-2.4.3-py2-none-any.whl is not a supported wheel on this platform.
what should i do?
Why that particular version? Does pip install googlemaps, which is version 2.4.3 currently, not satisfy your needs?

Categories