Can't update tensorflow OS X Monterey - python-3.x

I write in terminal pip3 show tensorflow and that's what i get:
pip3 show tensorflow Name: tensorflow Version: 1.8.0
here is what i get when im trying to upgrade it with pip3 install tensorflow==2.5.0:
pip3 install tensorflow==2.5.0 Defaulting to user installation because normal site-packages is not writeable ERROR: Could not find a version that satisfies the requirement tensorflow==2.5.0 (from versions: none) ERROR: No matching distribution found for tensorflow==2.5.0
PYTHON VERSION - 3.8.9
I have also tried to do it through source installing, but the same problem

Related

How do I update PIP repository in order to make new versions of python packages visible?

I'm setting up a RHEL8 (8.7) based Docker container, with Python 3.8.13 installed (installed python3-pip, python3.6, python 3.8 and 3.9 too). I have tried to install some Python libraries using requirements.txt:
RUN pip3 install -r requirements.txt
The txt file is recognized, some of the requirements are found and installed, but some of them are exiting with the failure code: 1
For example, I want to install joblib 1.2.0 and numpy 1.23.2, so my requirements.txt file has the following entries too:
joblib == 1.2.0
numpy == 1.23.2
But the build exits with the following as soon as it reaches the "joblib" line:
Collecting joblib==1.2.0 (from -r requirements.txt (line1))
Could not find a version that satisfies the requirement joblib==1.2.0 (from -r requirements.txt (line1)) (from versions: 0.3.2d.dev, ..*omitting a massive list of versions*.. 1.1.0, 1.1.1)
No matching distribution found for joblib==1.2.0 (from -r requirements.txt (line1))
error building image: error building stage: failed to execute command: waiting for process to exit: exit status 1
I have tried to install EPEL and probably install Python 3.10 or 3.11 but did not succeed, probably not supported by RHEL8.
I have gone through the following checks advised for cases when pip does not find the correct version:
pip install -r requirements.txt command is indeed running with the -r option.
version of pip is pip3, matching the installed Python3
name of the module is not misspelled, correct
the listed modules are not built-in modules (they indeed have to be installed separately)
package does support the version of Python:
Joblib 1.2.0 supported Python versions are 3.7+ (as stated, 3.8 and 3.9 is installed too)
Numpy 1.23.2 supported Python versions are 3.8-3.11
So these should be visible for pip3 installer - yet they are not, Joblib max offered version is 1.1.1...
Is there a workaround or solution for this?

Could not find a version that satisfies the requirement tensorflow (from versions: none)

When i execute the command in my terminal
pip install --upgrade tensorflow
i get an error
ERROR: Could not find a version that satisfies the requirement tensorflow (from versions: none)
ERROR: No matching distribution found for tensorflow
There was a similiar question in stackoverflow. The cause for this error is that tensorflow supports only up to Python 3.7. So i checked my version
python3 --version3
--> 3.8.1
I tried to downgrade it with
conda install python=3.7
---> Collecting package metadata (current_repodata.json): done
Solving environment: done
# All requested packages already installed.
but it does not work. How can this be?
I am using manjaro as a distro.
Could the Python3.7 you're running be the 32-bit version? Tensorflow requires the 64-bit version of python.

How to install TensorFlow on Windows

I'm trying to install tensorflow library by using de command:
> pip install tensorflow
I already have the latest version of python (3.8.0), but I'm getting the next error message:
ERROR: Could not find a version that satisfies the requirement tensorflow (from versions: none)
ERROR: No matching distribution found for tensorflow
What am I missing?
Now Tensorflow supports Python 3.8
install Tensorflow using
pip install tensorflow
Follow the instructions mentioned in the Tensorflow website.

ERROR: Could not find a version that satisfies the requirement tensorflow (fro versions: none)

I have MS Server 2012R2x64 and Python3.7 , i have installed needed packages, but when i try install tensorflow, i get sush error
C:\Windows\system32>pip3 install tensorflow
Collecting tensorflow
ERROR: Could not find a version that satisfies the requirement tensorflow (fro
m versions: none)
ERROR: No matching distribution found for tensorflow
I saw many similar topics here, but no one helped me.
This error means that there is no version(distributuon) for my OS,
Why there is no distirbution? because on my Win 8.1 x 64, python 3.7.2 tensorflow was installed very quickly. But on my server there is more RAM, so to perform analysis i need my server.
How to install tensorflow on my server?
In case people are still having this problem, it seems TensorFlow simply stopped hosting certain versions from PyPI. The pip error should now tell you what options are actually available. For example:
$ pip install tensorflow==1.11.0
Collecting tensorflow==1.11.0
ERROR: Could not find a version that satisfies the requirement tensorflow==1.11.0 (from versions: 1.13.0rc1, 1.13.0rc2, 1.13.1, 1.13.2, 1.14.0rc0, 1.14.0rc1, 1.14.0, 2.0.0a0, 2.0.0b0, 2.0.0b1, 2.0.0rc0)
ERROR: No matching distribution found for tensorflow==1.11.0
To install tensorflow normally with pip from a requirements file, you have to use one of the supported versions for example the ones listed above. The closest one for the example would be 1.13.1. However the easiest fix is to change the requirement to tensorflow>=1.11.0, which will install the latest ver 1 distribution, 1.14.0.
Try to follow with these instructions:
Install TensorFlow with pip
In particuar, you can try using this command:
python3 -m pip install --upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.12.0-py3-none-any.whl
but if it does not work, additional tips or other URLs can be found under the link above.
I hope I helped.

installing torch 1.0.1.post2 in windows system

Not Able to install latest version of Torch (pip install torch==1.0.1.post2)
pip install torch==1.0.1.post2
Trying to do in Python Version 3.7 and windows 10
C:\Users\Admin>pip install torch==1.0.1.post2
Collecting torch==1.0.1.post2
Could not find a version that satisfies the requirement torch==1.0.1.post2 (from versions: 0.1.2, 0.1.2.post1)
No matching distribution found for torch==1.0.1.post2
torch 1.0.1.post2 is not available on Windows. You can get a list of all available torch pypi packages from https://download.pytorch.org/whl/cpu/stable

Resources