# TensorRT for Python3.8 Jetson Nano python bindings

**URL:** <https://forums.developer.nvidia.com/t/tensorrt-for-python3-8-jetson-nano-python-bindings/287771>\
**Category:** Jetson Nano\
**Tags:** tensorrt\
**Created:** [March 28, 2024, 3:51pm UTC](https://forums.developer.nvidia.com/t/tensorrt-for-python3-8-jetson-nano-python-bindings/287771 "2024-03-28T15:51:31Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![santinosini](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/santinosini/32/315026_2.png) [@santinosini](https://forums.developer.nvidia.com/u/santinosini)\
**Post date:** [March 28, 2024, 3:51pm UTC](https://forums.developer.nvidia.com/t/tensorrt-for-python3-8-jetson-nano-python-bindings/287771/1 "2024-03-28T15:51:31Z")

</div>

Hello, I am trying to use TensorRT on Python3.8 on my Jetson Nano. I used SDK manager to get Jetpack for Jetson Nano, however that installs the bindings to Python3.6. I can use TensorRT on 3.6, but I’d like to use it on 3.8. I have been using this forum as a reference:

> [@Tensorrt package for python3.8 in Xavier NX with jetpack4.6](https://forums.developer.nvidia.com/t/tensorrt-package-for-python3-8-in-xavier-nx-with-jetpack4-6/193868):
>
> I am trying to reproduce the mlperf\_inference\_result\_v1.1 in Xavier NX, but I got the following error message: Traceback (most recent call last): File "code/main.py", line 47, in \<module\> import code.common.arguments as common\_args File "/workspace/projects\_zhr/mlperf/inference\_results\_v1.1/closed/NVIDIA/code/\_\_init\_\_.py", line 22, in \<module\> from code.common import logging File "/workspace/projects\_zhr/mlperf/inference\_results\_v1.1/closed/NVIDIA/code/common/\_\_init\_\_.py", line 33…

However, a deb file for the ’ Add PyConfig.h’ step for Python3.8 is not located at the linked website [here](https://packages.debian.org/search?searchon=contents&keywords=pyconfig.h&mode=path&suite=unstable&arch=any). Instead, I use the pyconfig.h file that I have in my aarch64 install of Python3.8, which I assume is acceptable, but I still have not had success. Thank you.

---

<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:** [April 8, 2024, 7:27am UTC](https://forums.developer.nvidia.com/t/tensorrt-for-python3-8-jetson-nano-python-bindings/287771/3 "2024-04-08T07:27:02Z")

</div>

Hi,

The file seems removed.  
Let us check this internally and update later.

Thanks.

---

<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:** [April 10, 2024, 6:58am UTC](https://forums.developer.nvidia.com/t/tensorrt-for-python3-8-jetson-nano-python-bindings/287771/4 "2024-04-10T06:58:15Z")

</div>

Hi,

Since PyConfig.h is a third-party library, we are not able to provide Python 3.8 for the aarch64 environment.  
Please stay on Python 3.6 or use other devices that can upgrade to a newer JetPack version.

Thanks.

---

<div class="post-metadata">

**Author:** ![santinosini](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/santinosini/32/315026_2.png) [@santinosini](https://forums.developer.nvidia.com/u/santinosini)\
**Post date:** [April 10, 2024, 11:10pm UTC](https://forums.developer.nvidia.com/t/tensorrt-for-python3-8-jetson-nano-python-bindings/287771/5 "2024-04-10T23:10:42Z")

</div>

Okay. In that case, I will not be able to use this to build the tensorrt bindings for Python3.8 as mentioned here?:

> [@Tensorrt package for python3.8 in Xavier NX with jetpack4.6](https://forums.developer.nvidia.com/t/tensorrt-package-for-python3-8-in-xavier-nx-with-jetpack4-6/193868/3):
>
> Hi, We don’t have a TensorRT package for python 3.8 on Jetson. Please follow the below tutorial to build it from the pybinding: Thanks.

---

<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:** [April 11, 2024, 7:42am UTC](https://forums.developer.nvidia.com/t/tensorrt-for-python3-8-jetson-nano-python-bindings/287771/6 "2024-04-11T07:42:01Z")

</div>

Hi,

To build the pybinding, you will need the PyConfig.h for Python 3.8+aarch64.  
Since it’s a third-party library, we cannot provide it here.

But you can still search if there is any archive file online.

Thanks.

---

<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:** [April 12, 2024, 3:41am UTC](https://forums.developer.nvidia.com/t/tensorrt-for-python3-8-jetson-nano-python-bindings/287771/7 "2024-04-12T03:41:15Z")

</div>

Hi,

Found an official link from Ubuntu:

> **[3.8.0-3~18.04 : libpython3.8-dev : arm64 : Bionic (18.04) : Ubuntu](https://launchpad.net/ubuntu/bionic/arm64/libpython3.8-dev/3.8.0-3~18.04)**
>
> Header files, a static library and development tools for building
> Python (v3.8) modules, extending the Python interpreter or embedding
> Python (v3.8) in applications.
> .
> Maintainers of Python packages should read README.maintainers.
> .
> This...

Then you can follow the steps shared below to build the python binding.  
(please replace python3.9 to python3.8)  
[https://elinux.org/Jetson/L4T/TRT\_Customized\_Example#TensorRT\_Python\_Bindings](https://elinux.org/Jetson/L4T/TRT_Customized_Example#TensorRT_Python_Bindings)

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:** [May 8, 2024, 2:51am UTC](https://forums.developer.nvidia.com/t/tensorrt-for-python3-8-jetson-nano-python-bindings/287771/9 "2024-05-08T02:51:42Z")

</div>

Closed on May 8, 2024, 2:51am UTC

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