how to install open cv wheel package using pip in python? - python

I have installed the wheels package and have the latest update of pip but when I try running pip install opencv.whl it says "opencv.whl is not a valid wheel filename". I made sure that I'm in the same directory where opencv.whl is present.
I also tried installing the .exe file of opencv but it says:
Could not find a version that satisfies the requirement opencv3 from versions:
No matching distributions found for opencv3

Related

How to install Detectron2

I am installing layout-parser and following this link. Did not face any issues with the following packages.  
pip install layoutparser
pip install "layoutparser[effdet]"
pip install layoutparser torchvision 
pip install "layoutparser[paddledetection]"
pip install "layoutparser[ocr]" 
But I am not able to install detectron2
pip install "git+https://github.com/facebookresearch/detectron2.git#v0.5#egg=detectron2" 
while installing this package I am getting this error    
ERROR: Could not find a version that satisfies the requirement detectron2 (unavailable) (from versions: none)
ERROR: No matching distribution found for detectron2 (unavailable)
I followed the same installation guide in Google collab and it worked but not able to install them in my Azure workspace.  
Check your python version. If you have Python version as 3.10 or higher you will face this issue. This is because detectron2 library has only wheels for <= Python 3.9.

cannot Install a pyhton package

I want to install the package existing in this repository in my anaconda enviroment
https://github.com/ChrisCummins/ProGraML
they say to use the command 'pip install -U programl'
but I keep getting this error
ERROR: Could not find a version that satisfies the requirement programl (from versions: none)
ERROR: No matching distribution found for programl
I have tried updating pip, creating another environment, cloning the programl repository and downloading the requirements.txt but to no result
I can't figure out what I'm missing

Why is pip failing to install tbb

I am trying to install umap-learn on my machine. But, I run into problems when installing tbb, which is a required package.
Installing from PyPI with pip
When I do,
pip install tbb
I get the error:
ERROR: Could not find a version that satisfies the requirement tbb (from versions: none)
ERROR: No matching distribution found for tbb
Downloading wheel from PyPI and installing
I downloaded the wheel from PyPI, and then tried installing directly with:
pip install tbb-2019.0-py2.py3-none-macosx_10_12_intel.macosx_10_12_x86_64.whl
I get the error:
ERROR: tbb-2019.0-py2.py3-none-macosx_10_12_intel.macosx_10_12_x86_64.whl is not
a supported wheel on this platform.
My machine is a Mac OS X El Capitan (10.11.6).
Help
Does this mean that tbb is not supported for my OS?
Is there some other package I am missing that is causing the installation to fail?
Has anyone else run into this problem?
Commenting out the tbb requirement in the requirement.txt file allows UMAP to be installed without tbb. UMAP can run without tbb, for the most part.

pip3 install opencv-python error on Raspbian

I'm trying to install opencv-python using the following command sudo pip3 install opencv-python but I keep getting the following error ERROR: Could not find a version that satisfies the requirement opencv-python (from versions: none)
ERROR: No matching distribution found for opencv-python
I tried upgrading the pip with the command pip install --upgrade pip and than trying again to install the opencv-python, but I'm still getting the same error.
This is due to the fact that there a no .whl on pypi for the raspberry architecture. You can also see this on the FAQ section of opencv-python README on Github:
Q: Pip fails with Could not find a version that satisfies the requirement ...?
A: Most likely the issue is related to too old pip and can be fixed by running pip install --upgrade pip. Note that the wheel (especially manylinux) format does not currently support properly ARM architecture so there are no packages for ARM based platforms in PyPI. However, opencv-python packages for Raspberry Pi can be found from https://www.piwheels.org/.
You should always check these pages for additional dependencies or installation notes for special architectures if you are facing any issues.
Note that you can quickly get there by visitng the Pypi page and then selectin the Homepage button

Cannot install py7zlib package using Python 3.6

I am trying to install py7zlib package, however I am getting below error:
ERROR: Could not find a version that satisfies the requirement py7zlib (from versions: none)
ERROR: No matching distribution found for py7zlib
I am using Python 3.6.
I tried:
pip install py7zlib
I would like to have this package working properly.
pip install pylzma.
This package include py7zlib

Categories

Resources