OpenCV Error on the Jetson Nano

I’ve installed OpenCV 4.8.0 with CUDA support on Jetpack 4.6.1 but I’m unable to use it with python3:

(vision) nikhil@nikhil-desktop:~$ opencv_version
4.8.0
(vision) nikhil@nikhil-desktop:~$ python3
Python 3.8.0 (default, Dec  9 2021, 17:53:27) 
[GCC 8.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import cv2
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'cv2'

Please help me resolve this issue.

Hi,

Do you build the python binging with python 3.8?

Thanks.

@AastaLLL Please share how to build the python binging with python 3.8.

@AastaLLL

@AastaLLL I’ve resolved this issue, I had the incorrect opencv path on the bashrc file.

Thanks for the update.
Good to know you solved the issue.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.