trying to install tensorrt in a conda env on Orin NX. Facing issues with adding the NVIDIA repo key and in the installation.I am looking to install just the python library.
Environment
Platform: Orin NX
Jetpack: 5.1 which includes CUDA 11.4, TensorRT 8.5.2, cuDNN 8.6.0 and VPI 2.2
Python: 3.8
Running this in a conda env.
The commands i tried(won’t work till the key related issue is sorted):
“pip3 install nvidia-tensort” and “pip3 install tensort-libs”
Got similar outputs for both:
"Looking in indexes: Simple index, https://pypi.ngc.nvidia.com
ERROR: Could not find a version that satisfies the requirement nvidia-tensort (from versions: none)
ERROR: No matching distribution found for nvidia-tensort
"
"Looking in indexes: Simple index, https://pypi.ngc.nvidia.com
ERROR: Could not find a version that satisfies the requirement tensort-libs (from versions: none)
ERROR: No matching distribution found for tensort-libs
"
Hi,
the file at “/etc/apt/sources.list.d/nvidia-l4t-apt-source.list” already contains the lines you just mentioned.
Also, i am trying to install tensorrt within conda env, not system-wide. The command:
$ sudo apt install python3-libnvinfer*
installs the library system-wide.
Just to let you know, i already have tensorrt installed system-wide while flashing the board. But i need to install it in the container, for specific tensorrt versions. Will try to link/copy the globally installed TRT in the conda env as well to see if that works.
Let me know if there’s anything else i can try out for installing in the env.
If you want to use it inside the container, please install it again.
If you want to leverage a system-wide library, then please add the corresponding flag when activating the environment.
Which version do you want to test?
On Jetson, the TensorRT version is limited to the JetPack version.
Installing different versions might lead to unexpected errors.
Hi @AastaLLL,
installing on jetson Orin NX in the container is exactly the problem. To install within the container, for Orin NX the Repo key needs to be added before running the installation commands, since tensorrt cannot be installed through the commands right away for this board. I am facing issues adding the repo key. I think this is a general problem related to installing tensorrt on Orin NX through the commands(irrespective of conda).