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

-- 
Todd

Attachment: signature.asc
Description: PGP signature

-- 
_______________________________________________
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

Reply via email to