# Jetson Xavier NX configuration issue

**URL:** <https://forums.developer.nvidia.com/t/jetson-xavier-nx-configuration-issue/274246>\
**Category:** Jetson Xavier NX\
**Tags:** opencv, cuda\
**Created:** [November 28, 2023, 8:33am UTC](https://forums.developer.nvidia.com/t/jetson-xavier-nx-configuration-issue/274246 "2023-11-28T08:33:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![scaipl.manan](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@scaipl.manan](https://forums.developer.nvidia.com/u/scaipl.manan)\
**Post date:** [November 28, 2023, 8:33am UTC](https://forums.developer.nvidia.com/t/jetson-xavier-nx-configuration-issue/274246/1 "2023-11-28T08:33:58Z")

</div>

Hi guys,  
I am facing some issues with my jetson Xavier NX. Actually I want to build OpenCV in that with python 3.7 and CUDA support. When I’m trying to install the OS using SDK manager I am getting python 3.6 with CUDA 10.2, Cudnn 8.2 and I can build OpenCV on top of that. But I want to build OpenCV with CUDA support for python 3.7. If I am upgrading my python version form 3.6 to 3.7, I am not able to use OpenCV that has been built over python 3.6.  
Can you help me with providing some documents that can help me in doing these changes.

---

<div class="post-metadata">

**Author:** ![AastaLLL](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/aastalll/32/14043_2.png) [@AastaLLL](https://forums.developer.nvidia.com/u/AastaLLL)\
**Post date:** [November 28, 2023, 9:10am UTC](https://forums.developer.nvidia.com/t/jetson-xavier-nx-configuration-issue/274246/3 "2023-11-28T09:10:27Z")

</div>

Hi,

Please find below an example of building OpenCV with a custom Python version:

> [@No cuda support after compiling opencv with cuda](https://forums.developer.nvidia.com/t/no-cuda-support-after-compiling-opencv-with-cuda/231822/10):
>
> Hi, You can modify the CMake command to build the OpenCV library for python 3.7. For example, below are steps for building OpenCV with python 3.9. \*\* Install NumPy for python 3.9 $ sudo -H python3.9 -m pip install numpy --upgrade numpy \*\* Update CMake command for python 3.9 [https://github.com/AastaNV/JEP/blob/master/script/install\_opencv4.6.0\_Jetson.sh#L62](https://github.com/AastaNV/JEP/blob/master/script/install_opencv4.6.0_Jetson.sh#L62) $ cmake \ -D PYTHON\_LIBRARIES=/usr/lib/python3.9/config-3.9-aarch64-linux-gnu/libpython3.9.so \ -D PYTHON3\_EXECUTABLE=/usr/bin/python3…

Thanks.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/system/32/68080_2.png) [@system](https://forums.developer.nvidia.com/u/system)\
**Post date:** [December 20, 2023, 5:08am UTC](https://forums.developer.nvidia.com/t/jetson-xavier-nx-configuration-issue/274246/5 "2023-12-20T05:08:42Z")

</div>

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