Can not install cleverhans version 3.1.0 - python

I am trying to install cleverhans verion 3.1.0 but getting following error
pip install cleverhans==3.1.0
Note: you may need to restart the kernel to use updated packages.
ERROR: Could not find a version that satisfies the requirement cleverhans==3.1.0 (from versions: 2.1.0, 3.0.0, 3.0.0.post0, 3.0.1)
ERROR: No matching distribution found for cleverhans==3.1.0
I want to access random_lp_vector method in 3.1.0 version which I am unable to access if I try in 3.0.1 also Is there any option available for adversarial training in the latest version which is 4.0.0
Please kindly help

You were not able to install version 3.1.0 via pip install as that version is not listed in Python package index(PyPI).
You can download the source code of the required version 3.1.0 or 4.0.0 from github directly and install using setup.py

Related

cant install tensorflow-addons i have tensorflow version 2.8 and python 3.10

ERROR: Could not find a version that satisfies the requirement tensorflow-addons (from versions: none)
ERROR: No matching distribution found for tensorflow-addons
The reason why you see that error message is because tensorflow-addons is in beta development and built only up to python 3.9
Please downgrade your python version to 3.9, that should do the trick (for any operating system).
After that, please run:
pip install tensorflow-addons==0.15.0
You should not see any uncompatibilities or error messages.

Can't install tensorflow on ubuntu 20.04.3 Python 3.6.15 pip 21.2.4

I have been around the mulberry bush for a few days trying to get tensorflow installed on an Ubuntu system. My specifications are;
Ubuntu: 20.04.3
Python (virtual environment): 3.6.15
Pip: 21.2.4
Tensorflow version wanted: 1.13.1
Tensorflow version will take: anything at this point
I followed a number of answers on the web. Got a compatible version of Python. Got the latest pip....
When I use the command;
pip3 install tensorflow==1.13.1
I get;
ERROR: Could not find a version that satisfies the requirement tensorflow==1.13.1 (from versions: none)
ERROR: No matching distribution found for tensorflow==1.13.1
when I do a pip_search on tensorflow, it shows tensorflow 2.6.0.
But when I do;
pip3 install tensorflow==2.6.0
I get the same error.
when I use the --upgrade switch to pip, I get the same error. I tried to install from a wheel file, but the file was incompatible on my system.
Any help is appreciated.
As per documentation of Tensorflow, version 1's final release that can be downloaded/installed is 1.15. Below this version are deprecated and no longer available to use in development.
Read it about here

Error while installing opencv-contrib-python 3.3.0.9

I am trying to install opencv-contrib-python 3.3.0.9 using command python -m pip install opencv-contrib-python==3.3.0.9.
However it is throwing the following error:
Could not find a version that satisfies the requirement opencv-contrib-python==3.3.0.9 (from versions: 3.4.2.16, 3.4.2.17, 3.4.3.18, 3.4.4.19, 3.4.5.20, 3.4.6.27, 3.4.7.28, 3.4.8.29, 4.0.0.21, 4.0.1.23, 4.0.1.24, 4.
1.0.25, 4.1.1.26, 4.1.2.30)
No matching distribution found for opencv-contrib-python==3.3.0.9
I am using Python 3.7, opencv 4.1.2.30 and PyCharm.
Can you install a newer version of opencv-contrib-python by using
pip install opencv-contrib-python?
According to https://pypi.org/project/opencv-contrib-python/3.3.0.9/, that version does not support Python 3.7 and it also provides a link to the latest version which mention support Python 3.7 and installation guide (i.e. pip install opencv-contrib-python)

Installing tensorflow-data-validation with pip installation

I have tried to install tensorflow-data-validation 0.9.0 with pip installation, but it keeps giving me the same error: Could not find a version that satisfies the requirement tensorflow-data-validation...
isn't this version available for windows or i am just missing something?
From the PyPi documentation on tensorflow-data-validation you can see the version compatibility:
Requires: Python >=2.7,<3
So you won't be able to install it with other versions (like your 3.6.2).

Anaconda3, Python 3.6 - pip install imagenet_utils - error message: Could not find a version that satisfies the requirement imagenet_utils

Anaconda3, Python 3.6, pip version 9.0.1
pip install imagenet_utils
Error message:
Could not find a version that satisfies the requirement imagenet_utils (from versions: ) No matching distribution found for imagenet_utils
Please, help.
Read me docs on github indicate compatibility up to 3.5. Take a look at some comparable libraries to avoid this issue here:
5 Genius Python Deep Learning Libraries.
Anaconda also offers a conda install version of Keras where this specific package can be accessed:
conda install -c conda-forge keras
then for python script would read:
from keras import imagenet_utils
Assuming compatibility is not the issue, you will need to verify the anaconda package location and make sure that you are installing to that location.

Categories

Resources