简体   繁体   中英

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM