Version error in Google Colab notebook for ISR package - python

ERROR: Could not find a version that satisfies the requirement tensorflow==2.0.0 (from ISR) (from versions: 2.2.0, 2.2.1, 2.2.2, 2.2.3, 2.3.0, 2.3.1, 2.3.2, 2.3.3, 2.3.4, 2.4.0, 2.4.1, 2.4.2, 2.4.3, 2.4.4, 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.6.0rc0, 2.6.0rc1, 2.6.0rc2, 2.6.0, 2.6.1, 2.6.2, 2.6.3, 2.6.4, 2.6.5, 2.7.0rc0, 2.7.0rc1, 2.7.0, 2.7.1, 2.7.2, 2.7.3, 2.7.4, 2.8.0rc0, 2.8.0rc1, 2.8.0, 2.8.1, 2.8.2, 2.8.3, 2.8.4, 2.9.0rc0, 2.9.0rc1, 2.9.0rc2, 2.9.0, 2.9.1, 2.9.2, 2.9.3, 2.10.0rc0, 2.10.0rc1, 2.10.0rc2, 2.10.0rc3, 2.10.0, 2.10.1, 2.11.0rc0, 2.11.0rc1, 2.11.0rc2, 2.11.0)
ERROR: No matching distribution found for tensorflow==2.0.0 (from ISR)
This is the error i'm facing when i try to do
!pip install ISR
in my google colab notebook

This error is caused by version incompatibility and I have faced a similar problem.
If you haven't installed TensorFlow yet, install it first:
pip install tensorflow
if you have already installed TensorFlow, you can just skip the dependency:
pip install ISR --no-deps
I solved the same issue using this command.

Related

How can I install TensorFlow version 2.2?

How can I install TensorFlow versions 2.2.0? I need to use this version for ONNX.
When I try:
pip install tensorflow==2.2.0
I get the following error:
Note: you may need to restart the kernel to use updated packages.
ERROR: Could not find a version that satisfies the requirement tensorflow==2.2.0 (from versions: 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.6.0rc0, 2.6.0rc1, 2.6.0rc2, 2.6.0, 2.6.1, 2.6.2, 2.6.3, 2.6.4, 2.6.5, 2.7.0rc0, 2.7.0rc1, 2.7.0, 2.7.1, 2.7.2, 2.7.3, 2.7.4, 2.8.0rc0, 2.8.0rc1, 2.8.0, 2.8.1, 2.8.2, 2.8.3, 2.8.4, 2.9.0rc0, 2.9.0rc1, 2.9.0rc2, 2.9.0, 2.9.1, 2.9.2, 2.9.3, 2.10.0rc0, 2.10.0rc1, 2.10.0rc2, 2.10.0rc3, 2.10.0, 2.10.1, 2.11.0rc0, 2.11.0rc1, 2.11.0rc2, 2.11.0)
ERROR: No matching distribution found for tensorflow==2.2.0
As correctly mentioned by Plagon, you need to install python version between 3.5 to 3.8 to support the TensorFlow version 2.2 as mentioned in this tested bulid configurations below.

ERROR: No matching distribution found for transformers==4.20.1

I am trying to install this specific version of transformers but I get the error:
pip3 install transformers==4.20.1
ERROR: Could not find a version that satisfies the requirement transformers==4.20.1
from versions: 0.1, 2.0.0, 2.1.0, 2.1.1, 2.2.0, 2.2.1, 2.2.2, 2.3.0, 2.4.0, 2.4.1,
2.5.0, 2.5.1, 2.6.0, 2.7.0, 2.8.0, 2.9.0, 2.9.1, 2.10.0, 2.11.0, 3.0.0, 3.0.1, 3.0.2,
3.1.0, 3.2.0, 3.3.0, 3.3.1, 3.4.0, 3.5.0, 3.5.1, 4.0.0rc1, 4.0.0, 4.0.1, 4.1.0,
4.1.1, 4.2.0, 4.2.1, 4.2.2, 4.3.0rc1, 4.3.0, 4.3.1, 4.3.2, 4.3.3, 4.4.0, 4.4.1,
4.4.2, 4.5.0, 4.5.1, 4.6.0, 4.6.1, 4.7.0, 4.8.0, 4.8.1, 4.8.2, 4.9.0, 4.9.1, 4.9.2,
4.10.0, 4.10.1, 4.10.2, 4.10.3, 4.11.0, 4.11.1, 4.11.2, 4.11.3, 4.12.0, 4.12.1,
4.12.2, 4.12.3, 4.12.4, 4.12.5, 4.13.0, 4.14.0, 4.14.1, 4.15.0, 4.16.0, 4.16.1,
4.16.2, 4.17.0, 4.18.0)
ERROR: No matching distribution found for transformers==4.20.1
I know the version exists since I have it installed on my local machine. I installing the package on an ubuntu remote machine. The Python version is 3.6.9. How can I get the version I need if it's saying that it doesn't even exist.
The 4.20.1 build does not support Python prior to 3.7. You'll either need to pick an earlier version or upgrade your Python.
You need Python >=3.7. You might also want to upgrade pip:
pip install --upgrade pip
https://pypi.org/project/transformers/4.20.0/

No module named 'tensorflow.contrib' when importing A2C from stable_baselines

I'm trying to import A2C from stable_baselines using the following code line:
from stable_baselines import A2C
But I get the following error:
ModuleNotFoundError: No module named 'tensorflow.contrib'
I tried installing an old version of Tensorflow using the following command:
pip install tensorflow==1.15.0
But I get the following error:
Defaulting to user installation because normal site-packages is not writeable
ERROR: Could not find a version that satisfies the requirement tensorflow==1.15.0 (from versions: 2.2.0, 2.2.1, 2.2.2, 2.2.3, 2.3.0, 2.3.1, 2.3.2, 2.3.3, 2.3.4, 2.4.0, 2.4.1, 2.4.2, 2.4.3, 2.4.4, 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.6.0rc0, 2.6.0rc1, 2.6.0rc2, 2.6.0, 2.6.1, 2.6.2, 2.6.3, 2.6.4, 2.6.5, 2.7.0rc0, 2.7.0rc1, 2.7.0, 2.7.1, 2.7.2, 2.7.3, 2.8.0rc0, 2.8.0rc1, 2.8.0, 2.8.1, 2.8.2, 2.9.0rc0, 2.9.0rc1, 2.9.0rc2, 2.9.0, 2.9.1)
ERROR: No matching distribution found for tensorflow==1.15.0
I tried installing Tensorflow 1.15.0 using the .whl file:
pip install tensorflow-1.15.0-cp37-cp37m-manylinux2010_x86_64.whl
But I also get an error:
Defaulting to user installation because normal site-packages is not writeable
ERROR: tensorflow-1.15.0-cp37-cp37m-manylinux2010_x86_64.whl is not a supported wheel on this platform.
I tried upgrading pip and uninstalling Tensorflow but I still get the same errors.
How can I deal with this problem?
'tensorflow.contrib' is no longer supported and deprecated to use in Tensorflow 2.x and Stable-Baselines also supports only Tensorflow versions 1.x.
To avoid this error ModuleNotFoundError: No module named 'tensorflow.contrib', you need to install Tensorflow 1.x using the below code if you have python 3.5 to 3.7 installed in your system.
!pip install tensorflow==1.15
!pip install stable_baselines
from stable_baselines import A2C
or you can try by coverting the runtime to Tensorflow 1.x before executing stable_baselines code:
%tensorflow_version 1.x
However, Tensorflow 1 is deprecated, and support will be removed on August 1, 2022. So It is suggested to use stable_baselines3 in the place of stable_baselines in Tensorflow 2.x.
!pip install stable_baselines3
from stable_baselines3 import A2C

ERROR: No matching distribution found for ipython==7.17.0

I uploaded a Python app to Heroku. In my requirements.txt file I have a line for ipython==7.17.0 but Heroku seems unable to retrieve it, I don't understand why this might happen because I'm able to download that ipython version on my machine.
The complete error thrown is:
ERROR: Could not find a version that satisfies the requirement ipython==7.17.0 (from -r /tmp/build_76afe907/requirements.txt (line 32)) (from versions: 0.10, 0.10.1, 0.10.2, 0.11, 0.12, 0.12.1, 0.13, 0.13.1, 0.13.2, 1.0.0, 1.1.0, 1.2.0, 1.2.1, 2.0.0, 2.1.0, 2.2.0, 2.3.0, 2.3.1, 2.4.0, 2.4.1, 3.0.0, 3.1.0, 3.2.0, 3.2.1, 3.2.2, 3.2.3, 4.0.0b1, 4.0.0, 4.0.1, 4.0.2, 4.0.3, 4.1.0rc1, 4.1.0rc2, 4.1.0, 4.1.1, 4.1.2, 4.2.0, 4.2.1, 5.0.0b1, 5.0.0b2, 5.0.0b3, 5.0.0b4, 5.0.0rc1, 5.0.0, 5.1.0, 5.2.0, 5.2.1, 5.2.2, 5.3.0, 5.4.0, 5.4.1, 5.5.0, 5.6.0, 5.7.0, 5.8.0, 5.9.0, 5.10.0, 6.0.0rc1, 6.0.0, 6.1.0, 6.2.0, 6.2.1, 6.3.0, 6.3.1, 6.4.0, 6.5.0, 7.0.0b1, 7.0.0rc1, 7.0.0, 7.0.1, 7.1.0, 7.1.1, 7.2.0, 7.3.0, 7.4.0, 7.5.0, 7.6.0, 7.6.1, 7.7.0, 7.8.0, 7.9.0, 7.10.0, 7.10.1, 7.10.2, 7.11.0, 7.11.1, 7.12.0, 7.13.0, 7.14.0, 7.15.0, 7.16.0, 7.16.1)
ERROR: No matching distribution found for ipython==7.17.0 (from -r /tmp/build_76afe907/requirements.txt (line 32))
The last allowed version is 7.16.1, that means you use Python 3.6.
7.17 requires Python 3.7+.

How to install tensorflow-gpu==1.11.0

My project needs tensorflow==1.11.0
But when I tried to install it, I got:
pip install tensorflow-gpu==1.11.0
Looking in indexes: http://mirrors.aliyun.com/pypi/simple
ERROR: Could not find a version that satisfies the requirement tensorflow-gpu==1.11.0 (from versions: 1.13.1, 1.13.2, 1.14.0, 1.15.0rc0, 1.15.0rc1, 1.15.0rc2, 1.15.0rc3, 1.15.0, 1.15.2, 1.15.3, 2.0.0a0, 2.0.0b0, 2.0.0b1, 2.0.0rc0, 2.0.0rc1, 2.0.0rc2, 2.0.0, 2.0.1, 2.0.2, 2.1.0rc0, 2.1.0rc1, 2.1.0rc2, 2.1.0, 2.1.1, 2.2.0rc0, 2.2.0rc1, 2.2.0rc2, 2.2.0rc3, 2.2.0rc4, 2.2.0)
ERROR: No matching distribution found for tensorflow-gpu==1.11.0
Plus, I am using py3.7.
Some python versions are incompatible with some versions of Tensorflow. If you very specifically need Tensorflow 1.11.0 then you can probably install it in a Python 3.6 environment.
If you very specifically need Python 3.7, you can probably install Tensorflow 1.13.1 or later.

Categories