Possibility of pip installing tensorrt-libs and tensorrt-bindings 8.6.2.3

Hi,

I currently have installed jetpack6 on my jetson nano. I have tensorrt 8.6.2.3 installed but not tensorrt-libs and tensorrt-bindings (8.6.2.3). I believe I need these packages to build and execute engine files. I wanted to ask if there is any pip support to download these packages, and if not, if there is any other method to do so.

I appreciate your time and help with this.

Thank you.

Hi,

TensorRT python library should be installed from JetPack by default.
Please check if you have the nvidia-tensorrt meta package installed.

$ apt show nvidia-tensorrt
Package: nvidia-tensorrt
Version: 6.0+b106
Priority: standard
Section: metapackages
Source: nvidia-tensorrt (6.0)
Maintainer: NVIDIA Corporation
Installed-Size: 205 kB
Depends: tensorrt-libs (= 8.6.2.3-1+cuda12.2)
Conflicts: libnvinfer-plugin6, libnvinfer-plugin7, libnvinfer6, libnvinfer7, libnvonnxparsers6, libnvonnxparsers7, libnvparsers6, libnvparsers7, python-libnvinfer
Homepage: http://developer.nvidia.com/jetson
Download-Size: 27.2 kB
APT-Manual-Installed: no
APT-Sources: https://repo.download.nvidia.com/jetson/common r36.3/main arm64 Packages
Description: NVIDIA TensorRT Meta Package

N: There is 1 additional record. Please use the '-a' switch to see it

If not, please install it with sudo apt install nvidia-tensorrt.
Then you can verify TensorRT python library installation with the following:

$ python3
Python 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorrt as trt
>>> trt.__version__
'8.6.2'

Thanks.

Hi AastaLLL,

Thanks so much for your response.

I tried pip installing nvidia-tensorrt but got this error -

Additionally, can you check pip list in the same environment and check if you have tensorrt-libs and tensorrt-bindings installed? I believe these missing packages are the reason I cannot import tensorrt.

Appreciate your guidance here.

Thanks,

Hi,

Please try to install the nvidia-l4t-dla-compiler package from the below link to fix the issue:
https://repo.download.nvidia.com/jetson

Thanks.

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