How to Install and Uninstall python3-opencv Package on Ubuntu 20.04 LTS (Focal Fossa)

Last updated: November 26,2024

1. Install "python3-opencv" package

Learn how to install python3-opencv on Ubuntu 20.04 LTS (Focal Fossa)

$ sudo apt update $ sudo apt install python3-opencv

2. Uninstall "python3-opencv" package

Here is a brief guide to show you how to uninstall python3-opencv on Ubuntu 20.04 LTS (Focal Fossa):

$ sudo apt remove python3-opencv $ sudo apt autoclean && sudo apt autoremove

3. Information about the python3-opencv package on Ubuntu 20.04 LTS (Focal Fossa)

Package: python3-opencv
Architecture: amd64
Version: 4.2.0+dfsg-5
Priority: optional
Section: universe/python
Source: opencv
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Science Team
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 6844
Depends: libopencv-calib3d4.2 (= 4.2.0+dfsg-5), libopencv-dnn4.2 (= 4.2.0+dfsg-5), libopencv-features2d4.2 (= 4.2.0+dfsg-5), libopencv-flann4.2 (= 4.2.0+dfsg-5), libopencv-highgui4.2 (= 4.2.0+dfsg-5), libopencv-imgcodecs4.2 (= 4.2.0+dfsg-5), libopencv-imgproc4.2 (= 4.2.0+dfsg-5), libopencv-ml4.2 (= 4.2.0+dfsg-5), libopencv-objdetect4.2 (= 4.2.0+dfsg-5), libopencv-photo4.2 (= 4.2.0+dfsg-5), libopencv-shape4.2 (= 4.2.0+dfsg-5), libopencv-stitching4.2 (= 4.2.0+dfsg-5), libopencv-superres4.2 (= 4.2.0+dfsg-5), libopencv-video4.2 (= 4.2.0+dfsg-5), libopencv-videoio4.2 (= 4.2.0+dfsg-5), libopencv-videostab4.2 (= 4.2.0+dfsg-5), libopencv-viz4.2 (= 4.2.0+dfsg-5), python3 (<< 3.9), python3 (>= 3.8~), python3-numpy (>= 1:1.16.0~rc1), python3-numpy-abi9, libc6 (>= 2.14), libgcc-s1 (>= 3.0), libopencv-contrib4.2 (>= 4.2.0+dfsg), libopencv-core4.2 (>= 4.2.0+dfsg), libstdc++6 (>= 5.2)
Filename: pool/universe/o/opencv/python3-opencv_4.2.0+dfsg-5_amd64.deb
Size: 1213764
MD5sum: 3de0e844478c9d7e415ccf8bfedefd66
SHA1: 7487309b18b4d8e1dded5ea533dae1cd6431708d
SHA256: e3fe76fb51db16ae293cb3d5ddf4b9209583b93ff0cbbadc0c25313ea003ae6f
Homepage: https://opencv.org
Description: Python 3 bindings for the computer vision library
Description-md5: dee464304625bd8d8fc8e276062d8904