No module named cv cv2 No matching distribution found for mediapipe - python

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

Related

I cannot install python module cv2 on windows 7 with pip

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

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

OpenCV install on Python 3.6: ModuleNotFoundError

I am getting the following error when using import cv2:
ModuleNotFoundError: No module named 'cv2'
My version of Python is 3.6 64 bit. I have downloaded the whl file to install it via pip manually, and have also installed it with pip install opencv-python however I still get ModuleNotFoundError.
pip outputs Requirement already satisfied: opencv-python in c:\...\python36\site-packages
Help would be much appreciated.
Your download must have been corrupted. It happened to me too. Simply uninstall the package and use
sudo apt-get install python open-cv
Use pip install -U opencv-python

from PIL import Image failed on Python3.6

I'm new to Python and I have a problem with Pillow (as many people before me).
Running the command below:
from PIL import Image
causes a known error:
ModuleNotFoundError: No module named 'PIL'
The problem occurs when I try to run it with Python 3.6, everything works fine with Python 3 however I have to use version 3.6 in my project.
Pillow version: 4.3.0, so it is compatible with this Python version.
Why does this not work on the newer version?
I had to install pillow for 3.6 python: python3.6 -m pip install pillow
PIL and Python compatibility issue. See for example (http://pillow.readthedocs.io/en/5.1.x/installation.html ).
pipX search Pillow -> shows which version is installed and available.
Better to use Python virtual environment to avoid compatibility issues.
pip uninstall Pillow
pip uninstall PIL
pip install Pillow
Source
C:\python>pip install pillow
Collecting pillow
Downloading https://files.pythonhosted.org/packages/4e/d9/468422371e6fcf02d6a162ee30db4552221de8b2b3ff837363bf54cbb347/Pillow-6.1.0-cp36-cp36m-win_amd64.whl (2.0MB)
100% |████████████████████████████████| 2.0MB 3.2MB/s
Installing collected packages: pillow
Successfully installed pillow-6.1.0
You are using pip version 18.1, however version 19.2.3 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.

Categories

Resources