How to install OpenCV 4.5.2 with CUDA 11.2 and CUDNN 8.2 in Ubuntu 20.04 First of all install update and upgrade your system: $ sudo apt update $ sudo apt upgrade Then, install required libraries: