I am trying to install package inside a docker container(python:rc-slim).
As of now I see that most recent azureml-core wheel uploaded to PyPI is:
azureml_core-1.13.0-py3-none-any.whl
but when I run pip install azureml-core==1.13.0 I get following error:
ERROR: Could not find a version that satisfies the requirement
azureml-core==1.13.0 (from versions: 0.1.50, 0.1.57, 0.1.58, 0.1.59,
0.1.65, 0.1.68, 0.1.74, 0.1.80, 1.0rc83, 1.0rc85, 1.0.2, 1.0.6, 1.0.8, 1.0.10, 1.0.15, 1.0.17, 1.0.17.1, 1.0.18, 1.0.21, 1.0.23, 1.0.30, 1.0.33, 1.0.33.1, 1.0.39, 1.0.41, 1.0.41.1, 1.0.43, 1.0.43.1, 1.0.45, 1.0.48, 1.0.53, 1.0.55, 1.0.57, 1.0.57.1, 1.0.60, 1.0.62, 1.0.62.1, 1.0.65, 1.0.65.1, 1.0.69, 1.0.72, 1.0.74, 1.0.76, 1.0.76.1, 1.0.79, 1.0.81, 1.0.81.1, 1.0.83, 1.0.85, 1.0.85.1, 1.0.85.2, 1.0.85.3, 1.0.85.4, 1.0.85.5, 1.0.85.6, 1.1.0rc0, 1.1.1rc0, 1.1.1.1rc0, 1.1.1.2rc0, 1.1.2rc0, 1.1.5, 1.1.5.1, 1.1.5.2, 1.1.5.3, 1.1.5.4, 1.1.5.5, 1.1.5.6, 1.1.5.7)
When installing packages from 'apt-get' I usually have to update the index first but I can't find a comparable command to do that with pip.
azureml-core version 1.1.5.7 supports Python 2.7 and 3.4+.
Starting from version 1.2.0 it only supports Python 3.5+.
From your list of versions I can guess you use Python 2.7 or 3.4. To use a later version of azureml-core you need a later version of Python.
Two possibilities:
the package needs you to use an underscore (since hyphens don't behave) so pip can download it: so run pip install azureml_core==1.13.0
Run with the --no-cache-dir argument, so pip install --no-cache-dir azureml_core==1.13.0. This argument forces pip to refresh it's package cache.
Related
I need to create env with
mamba create --name tf1_12__HDR Tensorflow==1.12.0 Keras==2.2.4 opencv-python==3.4.4.19 anaconda
It provides
mamba (0.7.3) supported by #QuantStack
...
Looking for: ['tensorflow==1.12.0', 'keras==2.2.4', 'opencv-python==3.4.4.19', 'anaconda']
...
Problem: nothing provides requested opencv-python 3.4.4.19
I am calling
pip install opencv-python==
ERROR: Could not find a version that satisfies the requirement opencv-python== (from versions: 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, 3.4.9.31, 3.4.9.33, 3.4.10.35, 3.4.10.37, 3.4.11.39, 3.4.11.41, 3.4.11.43, 3.4.11.45, 3.4.13.47, 3.4.14.51, 3.4.14.53, 3.4.15.55, 3.4.16.57, 4.0.0.21, 4.0.1.23, 4.0.1.24, 4.1.0.25, 4.1.1.26, 4.1.2.30, 4.2.0.32, 4.2.0.34, 4.3.0.36, 4.3.0.38, 4.4.0.40, 4.4.0.42, 4.4.0.44, 4.4.0.46, 4.5.1.48, 4.5.2.52, 4.5.2.54, 4.5.3.56, 4.5.4.58)
ERROR: No matching distribution found for opencv-python==
So such version exists.
I know a cheat to overcome issue using steps:
1 Create env without opencv-python
2 Install opencv-python with pip
but it can lead to conflicts inside enviroment and potentially break it.
Can you please provide a "clean" solution and/or describe the reason of this
unexpected output?
PyPI and Anaconda Cloud packages don't necessarily go by the same names. The opencv package from Conda Forge will include the OpenCV libs (libopencv) and the Python interface (py-opencv). That is, install opencv with the version you want.
BTW, as mentioned in the comments == is Pip syntax, Conda/Mamba use single =.
Occured probrem
I ran the following command to install an older version of opencv-contrib-python (4.0.0.21). Then an error occurred and this package could not be installed. How can I resolve this error?
pip install opencv-contrib-python==4.0.0.21
Collecting opencv-contrib-python==4.0.0.21
ERROR: Could not find a version that satisfies the requirement opencv-contrib-python==4.0.0.21 (from versions: 3.4.8.29, 3.4.9.31, 3.4.9.33, 3.4.10.35, 3.4.10.37, 3.4.11.39, 3.4.11.41, 3.4.11.43, 3.4.11.45, 4.1.2.30, 4.2.0.32, 4.2.0.34, 4.3.0.36, 4.3.0.38, 4.4.0.40, 4.4.0.42, 4.4.0.44, 4.4.0.46)
ERROR: No matching distribution found for opencv-contrib-python==4.0.0.21
Environment
Windows 10
Python 3.8.2
Pip 19.2.3
The version you specified opencv-contrib-python (4.0.0.21) does not have a relevant python3.8 version.
You need to use opencv corresponding to python3.8, or lower your python version to match the opencv version.
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)
I am trying to install PyTorch 1.3 using pip :
pip3 install torch==1.3.1+cpu torchvision==0.4.2+cpu -f https://download.pytorch.org/whl/torch_stable.html
I got the command line from this page :
https://pytorch.org/get-started/locally/#start-locally
It fails, with the following error message :
ERROR: Could not find a version that satisfies the requirement
torch==1.3.1+cpu (from versions: 0.1.2, 0.1.2.post1, 0.1.2.post2)
ERROR: No matching distribution found for torch==1.3.1+cpu
Using verbose mode (-v) give a little more info :
Skipping link: unsupported archive format: .html:
https://download.pytorch.org/whl/torch_stable.html (from -f)
Analyzing links from page https://pypi.org/simple/torch/
It seems pip cannot use the url I provide and will get packages from another URL.
That one support at best Python 3.6. Since I have installed 3.7.5 (which is support by URL initially provided) none of the packages match and it fails.
I could downgrade to 3.6 but since 3.7 is officially supported I would like to try to fix that issue first.
EDIT : pip is up to date. I got exact same error on both Windows 10 and 7 64 bit machines.
Also: the PyTorch page says :
Please ensure that you have met the prerequisites below (e.g., numpy)
But AFAIK does not list any library in that section. During my tests, numpy was installed and up to date.
As requested, here is the full output of pip :
https://pastebin.com/8Wpqp6du
You error is being triggered because the version 1.3.1+cpu doesn't exist.
If you go to pytorch.org you will be able to select a version of pytorch and your OS, where it will give you a command to install pyTorch correctly, for Python 3.7 and PIP use the following:
pip3 install --find-links https://download.pytorch.org/whl/torch_stable.html torch==1.3.1 torchvision==0.4.2
Remember to check that the pip3 binary you are using is the one installed over Python 3.7.
Also, mind that the documentation you are pointing at is for MacOS.
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).