Opencv Build with cuda on jetson agx orin for venv

Hi,

Thanks for your patience.
Please give the following steps a try.

Setup

$ sudo add-apt-repository ppa:deadsnakes/ppa
$ sudo apt-get update
$ sudo apt-get install python3.6 python3.6-dev python3.6-venv

Create virtual environment (no need to use –system-site-packages)

$ virtualenv --python=python3.6 env
$ source env/bin/activate

Build OpenCV for python3.6

install_opencv4.6.0_py3.6.sh (2.6 KB)

./install_opencv4.6.0_py3.6.sh

Test

$ python3
Python 3.6.15 (default, Apr 25 2022, 01:55:53) 
[GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import cv2
>>> cv2.__version__
'4.5.3'

Thanks.