I cannot install python module cv2 on windows 7 with pip - python

I can not install Python module cv2 with the command "pip install cv2"
OS: Windows 7 64bit
error:
Defaulting to user installation because normal site-packages is not writeable
ERROR: Could not find a version that satisfies the requirement cv2 <from versions: none >
WARNING: You are using pip version 20.2; however, version 20.2.1 is available.
You should consider upgrading

Install OpenCv instead of cv2 :
pip install opencv-python
Will work
OpenCv tutorial

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.

No module named cv cv2 No matching distribution found for mediapipe

I am using windows
import cv2
ModuleNotFoundError: No module named 'cv2'
how to fix it?
I tried
pip install opencv-contrib-python
pip3 install opencv-python
pip install opencv-python
etc etc, still did not work
update: cv2 is fixed, but I am having a problem on mediapipe.
it's showing like this:
ERROR: Could not find a version that satisfies the requirement mediapipe (from versions: none)
ERROR: No matching distribution found for mediapipe
WARNING: You are using pip version 21.3.1; however, version 22.3.1 is available.
You should consider upgrading via the 'E:\python\Scripts\python.exe -m pip install --upgrade pip' command.
my python version is 3.11.0
It seems the install of cv2 goes nicer with system install: apt install python3-opencv
I think, with Python 3.11.0 we can't install mediapipe. What I suggest you is to try lowering your Python version to 3.7.0 and install mediapipe. If you face the same issue then try installing mediapipe==0.8.9

I am not able to install python mediapipe library on mac

As I tried to use pip to install mediapipe in my virtual environment, I run this in my terminal:
(venv) (base) stu-S2-19r:FaceDetector S2$ pip install mediapipe
And got this error:
ERROR: Could not find a version that satisfies the requirement mediapipe
ERROR: No matching distribution found for mediapipe
I am currently running:
Python 3.7.7, pip 21.0.1 on Mac OS Version 10.14.6.
Any help would be appreciated
I figured it out. You need to make sure you are running a version of Mac OS that is Catalina or higher.

Can't install open3d libraries (Error:Could not find a version that satisfies the requirement open3d)

I use pyCharm software in windows 10, and when I tried to install open3d the following error appeared:
ERROR: Could not find a version that satisfies the requirement open3d (from versions: none)
ERROR: No matching distribution found for open3d
I tried to install it using cmd but the same error appeared, also pip version is 20.1.1.
Image
If you can't seem to upgrade open3d to version 0.13.0;
Upgrade to the latest pip version
python3 -m pip install --upgrade pip
and
sudo pip3 install open3d==0.13.0
Hope that works.
Solved: by installing python version 3.77 and run code using it instead of 3.8

getting error while installing opencv via pip

python version = Python 3.8.0
pip version = 19.3.1
C:\Users\Sami Ullah Ch>pip3 install opencv-python
ERROR: Could not find a version that satisfies the requirement opencv-python (from versions: none)
Install OpenCV
Refresh the packages index and install the OpenCV package by typing:
sudo apt update
sudo apt install python3-opencv
The command above will install all packages necessary to run OpenCV.
Verify the OpenCV installation
To verify the installation we will import the cv2 module and print the OpenCV version:
>>> import cv2
>>> cv2.__version__
Output
3.2.0
OpenCV has not been built yet for 3.8.0. You should try using Python version 3.7

Categories

Resources