Installing packages with older version of Python - 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

Related

Why can't I install tensorflow on windows 10 (python 3.9.0 pip 21.0.1)?

I tried pip installing it using command prompt, and got this error
py -m pip install tensorflow
ERROR: Could not find a version that satisfies the requirement tensorflow
ERROR: No matching distribution found for tensorflow
Currently the Tensorflow only supports for python 3.5 - 3.8. As you are on 3.9 it will now work, you need to downgrade your python version for now. When it will support python 3.9 you can upgrade to that version.
Tensorflow is supporting up to Python 3.8 as per their documentation.
You have to create new environment with Python 3.8

Cannot install TensorFlow 1.x

I am trying to install Tensorflow 1.14 for a package that I am trying to use. I tried:
pip3 uninstall tensorflow
Then I tried to install Tensorflow 1.14 using:
pip3 install tensorflow==1.14
and I get the following error
ERROR: Could not find a version that satisfies the requirement tensorflow==1.14 (from versions: 2.2.0rc3, 2.2.0rc4, 2.2.0, 2.3.0rc0, 2.3.0rc1, 2.3.0rc2) ERROR: No matching distribution found for tensorflow==1.14
I also tried making a new virtual env and tried the following commands but it didn't work. Is there any way to install Tensorflow 1?
What I've found on discourse:
You just need to make sure you’re using Python 3.5, 3.6 or 3.7. TensorFlow 1.15 does not support Python 3.8
It works for me to install 1.x tensorflow with the following command:
pip3 install https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.14.0-py3-none-any.whl
Try installing the final version of TensorFlow 1.15 using,
pip install tensorflow==1.15
Make sure that you are using a python3 virtual environment and Python version is 3.6 or above.
Or you may use Conda environment and install using
conda install -c conda-forge tensorflow=1.15
On top of what being said (i.e. the version), be sure that it is 64-bits version because Tensorflow is not working with Python 32 bits (or at least the recent versions).
You can check your version by typing python in the command line and check what appears.
For example, this is for 32 bits
and for 64bits
I faced the same issue while installing tensorflow version 1.14.0. The best solution i tried is:
Note that your Python version is 3.7.8
Steps:
Open python 3.7.8 script folder C:\Users\mypc\AppData\Local\Programs\Python\Python37\Scripts folder and type "cmd" in above bar, which opens it in the command prompt.
To install tensorflow-1.14.0 type : pip install tensorflow==1.14.0
To install keras-2.2.4 type : pip install keras==2.2.4
From this issue on the Tensorflow Github titled Tensorflow 1.x not available for python 3.8:
Saduf2019: TensorFlow 1.x even 2.1 does not support Python 3.8
mihaimaruseac: We don't add new versions of Python for old releases. If you want to use TF 1.15, you have to use Python 3.7 or lower. If you want to use Python 3.8 you have to use TF 2.2 or newer.
Sounds like support for newer versions of Python > 3.7 won't be available for any tensorflow 1.x < 1.15.

Installing previous version of tensorlfow on windows using pip

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.

PIP Won't install Tensorflow

I'm trying to install tensorflow with pip, but every time I try I get this:
pip3 install Tensorflow
Collecting Tensorflow
ERROR: Could not find a version that satisfies the requirement Tensorflow
(from versions: none)
ERROR: No matching distribution found for Tensorflow
What do I do?
(I'm running Pip 19.2.2 on Windows 7 x64 if this info is needed)
Try python3 -m pip install tensorflow
Also tensorflow only supports 64 bit version Python, check that you have installed the correct version.
Also, often times its easier to use a slightly older Python version together with Tensorflow. I have found installations of e.g. Python 3.6.x + tf to work more smoothly than 3.7.x.
Run
pip install --upgrade tensorflow

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.

Categories