Cannot install TensorRT on Orin with JetPack5.1.1: Depends: python3 (>= 3.10) but 3.8.2-0ubuntu2

Hello all,
I been trying to follow instructions from Flux & ComfyUI 🆕 - NVIDIA Jetson AI Lab to install flux and comfyui. At the 2nd step I stuck and I cannot install python3-libnvinfer python3-libnvinfer-dev and tensorrt, because whenever I try to install libnvinfer I see errors like this:

The following packages have unmet dependencies:
 python3-libnvinfer : Depends: python3 (>= 3.10) but 3.8.2-0ubuntu2 is to be installed

Apparently the python 3.10 from conda env is not under consideration by apt. I tried to manually install a python 3.10 through apt-get and it didn’t help neither. The friendly author who said we can “reach out to” didn’t leave any contact information at all as well.

Is there ever a solution for this? I have searched for hours and all progress I’ve made so far is I installed libnvinfer lib through sudo apt-get install libnvinfer*, but tensorrt is still not installed and I have no clue where I am heading to. How could I finish this step in he tutorial and move on to the following steps please? Thank you.

Hi,

AI Lab is based on the JetPack 6 environment.
Is reflashing the device with our latest JetPack 6 an option for you?

If not, since JetPack 5 uses Python 3.8, please try to customize the environment for Python 3.8 to see if it works.
For example:

conda create -n comfyui python=3.8

Then you will also need to update all the libraries to the JetPack 5 support version (ex. CUDA, PyTorch, …).

Thanks.

1 Like

Hi,
Thank you for the help!
Reflashing the device is probably not an option sadly accroding to our upstream device provider who flashed the device for us.
I have indeed tried to make an conda env with python 3.8, and I think I could install CUDA 11.4 and PyTorch myself following guidelines I found, but I have no clue which version of tensorrt should I install since the latest doesn’t seem to work. Did some googleing but found nothing useful either.
Any suggestion on how to find (and install) the right version of tensorrt suitable to JetPack5 please? Thank you.

Hi,

If JetPack 5.1.3 is used, the corresponding TensorRT version is 8.5.2.
To check the detailed component version, you can find our JetPack page:

Thanks.

1 Like

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