On Sun Jan25'26 10:16:03AM, Todd Zullinger wrote: > From: Todd Zullinger <[email protected]> > Date: Sun, 25 Jan 2026 10:16:03 -0500 > To: [email protected] > Reply-To: Community support for Fedora users <[email protected]> > Subject: Re: python's cv2 library in Fedora > > Hi, > > Ranjan Maitra via users wrote: > > I need to use python's cv2 library in Fedora. I have been > > able to install the opencv library using dnf > > (python3-opencv) but I was wondering if the cv2 library > > also exists in Fedora, or should I be installing using > > pip. (Personally, I prefer using the distribution packages > > as far as possible.) > > The python3-opencv package provides the cv2 python module. > Isn't that all you need? > > $ rpm -qa python3-opencv '*cv2*' > python3-opencv-4.11.0-3.fc42.x86_64 > > $ python -c 'import cv2; print(cv2.__file__)' > /usr/lib64/python3.13/site-packages/cv2/__init__.py > > $ rpm -qf > /usr/lib64/python3.13/site-packages/cv2/__init__.py > python3-opencv-4.11.0-3.fc42.x86_64 >
Indeed, it does, thank you! I did not realize that it was included: dnf info was not very clear about it. $sudo dnf info python3-opencv Updating and loading repositories: Repositories loaded. Installed packages Name : python3-opencv Epoch : 0 Version : 4.11.0 Release : 3.fc42 Architecture : x86_64 Installed size : 10.7 MiB Source : opencv-4.11.0-3.fc42.src.rpm From repository : fedora Summary : Python3 bindings for apps which use OpenCV URL : https://opencv.org License : BSD-3-Clause AND Apache-2.0 AND ISC Description : This package contains Python3 bindings for the OpenCV library. Vendor : Fedora Project Thanks very much again for this, and best wishes, Ranjan -- _______________________________________________ users mailing list -- [email protected] To unsubscribe send an email to [email protected] Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/[email protected] Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue
