# Installing TensorRT on Orin NX without docker

**URL:** <https://forums.developer.nvidia.com/t/installing-tensorrt-on-orin-nx-without-docker/258033>\
**Category:** Jetson Orin NX\
**Tags:** jetson-inference, tensorrt\
**Created:** [June 27, 2023, 3:53pm UTC](https://forums.developer.nvidia.com/t/installing-tensorrt-on-orin-nx-without-docker/258033 "2023-06-27T15:53:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![surajsingh52](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@surajsingh52](https://forums.developer.nvidia.com/u/surajsingh52)\
**Post date:** [June 27, 2023, 3:53pm UTC](https://forums.developer.nvidia.com/t/installing-tensorrt-on-orin-nx-without-docker/258033/1 "2023-06-27T15:53:07Z")

</div>

Hey,  
have been trying to install tensorrt on the new Orin NX 16 GB. I am using Jetpack 5.1. Although the jetpack comes with the tensorrt libraries and can be installed using those, i am unable to install it’s Python APIs.

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. Can share the environment.yml file to recreate the env.

## Steps To Reproduce

Started with: $ pip install tensorrt\_libs

"  
Preparing metadata (setup.py) … error  
error: subprocess-exited-with-error

× python setup.py egg\_info did not run successfully.  
│ exit code: 1  
╰─\> [16 lines of output]  
Traceback (most recent call last):  
File “”, line 2, in   
File “”, line 34, in   
File “/tmp/pip-install-0vapn2ox/tensorrt-libs\_3fc61b4addab4290925137477c5d20f8/setup.py”, line 137, in   
raise RuntimeError(open(“ERROR.txt”, “r”).read())  
RuntimeError:  
###########################################################################################  
The package you are trying to install is only a placeholder project on [PyPI.org](http://PyPI.org) repository.  
This package is hosted on NVIDIA Python Package Index.

````
  This package can be installed as:
  ```
  $ pip install --extra-index-url https://pypi.nvidia.com tensorrt-libs
  ```
  ###########################################################################################
  
  [end of output]

````

note: This error originates from a subprocess, and is likely not a problem with pip.  
error: metadata-generation-failed

× Encountered error while generating package metadata.  
╰─\> See above for output.  
"  
In trying to figure out, tried:

1. pip install python3-libnvinfer

raised error-\>  
"ERROR: Could not find a version that satisfies the requirement python3-libnvinfer (from versions: none)  
ERROR: No matching distribution found for python3-libnvinfer  
"  
2. Got to know that, some packages are typically provided through the NVIDIA package manager, which is specific to the JetPack version.

Tried: Adding the NVIDIA Repo key using the command,  
wget [https://developer.download.nvidia.com/embedded/L4T/r32\_Release\_v6.1/jetson-ota-public.asc](https://developer.download.nvidia.com/embedded/L4T/r32_Release_v6.1/jetson-ota-public.asc)

got the error-\>  
"Connecting to [developer.download.nvidia.com](http://developer.download.nvidia.com) ([developer.download.nvidia.com](http://developer.download.nvidia.com))|152.199.39.144|:443… connected.  
HTTP request sent, awaiting response… 404 Not Found  
2023-06-21 15:24:12 ERROR 404: Not Found.  
"  
Let me know if these steps are correct, or if i need to correct some command. I am still stuck in this, so any help would be great. Also, let me know if you guys need any additional data.

---

<div class="post-metadata">

**Author:** ![spolisetty](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/spolisetty/32/14047_2.png) [@spolisetty](https://forums.developer.nvidia.com/u/spolisetty)\
**Post date:** [June 27, 2023, 5:56pm UTC](https://forums.developer.nvidia.com/t/installing-tensorrt-on-orin-nx-without-docker/258033/5 "2023-06-27T17:56:39Z")

</div>

Hi,

We are moving this post to the Jetson Orin NX forum to get better help.

Thank you.

---

<div class="post-metadata">

**Author:** ![dusty\_nv](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/dusty_nv/32/14043_2.png) [@dusty\_nv](https://forums.developer.nvidia.com/u/dusty_nv)\
**Post date:** [June 27, 2023, 7:31pm UTC](https://forums.developer.nvidia.com/t/installing-tensorrt-on-orin-nx-without-docker/258033/6 "2023-06-27T19:31:35Z")

</div>

> [@surajsingh52](#):
>
> 1. Got to know that, some packages are typically provided through the NVIDIA package manager, which is specific to the JetPack version.

Yes, you should just be able to do `sudo apt-get install python3-libnvinfer-dev` to install the TensorRT Python bindings from JetPack. These JetPack apt repos should already be active on your device after it’s flashed with SDK Manager.

> [@surajsingh52](#):
>
> Tried: Adding the NVIDIA Repo key using the command,  
> wget [https://developer.download.nvidia.com/embedded/L4T/r32\_Release\_v6.1/jetson-ota-public.asc](https://developer.download.nvidia.com/embedded/L4T/r32_Release_v6.1/jetson-ota-public.asc)
> 
> got the error-\>  
> "Connecting to [developer.download.nvidia.com](http://developer.download.nvidia.com) ([developer.download.nvidia.com](http://developer.download.nvidia.com))|152.199.39.144|:443… connected.

Try this URL instead: [https://repo.download.nvidia.com/jetson/jetson-ota-public.asc](https://repo.download.nvidia.com/jetson/jetson-ota-public.asc)

> [@surajsingh52](#):
>
> I am using Jetpack 5.1.

You should have an `/etc/apt/sources.list.d/nvidia-l4t-apt-source.list` file that looks like this for JetPack 5.1 (L4T R35.2.1)

```auto
deb https://repo.download.nvidia.com/jetson/common r35.2 main
deb https://repo.download.nvidia.com/jetson/t234 r35.2 main

```

or like this for JetPack 5.1.1 (L4T R35.3.1)

```auto
deb https://repo.download.nvidia.com/jetson/common r35.3 main
deb https://repo.download.nvidia.com/jetson/t234 r35.3 main

```

If `/etc/apt/sources.list.d/nvidia-l4t-apt-source.list` doesn’t exist for you, try creating it from the above. Then you should be able to run `sudo apt-get update` and list/install the NVIDIA JetPack packages.

---

<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:** [July 19, 2023, 4:50am UTC](https://forums.developer.nvidia.com/t/installing-tensorrt-on-orin-nx-without-docker/258033/9 "2023-07-19T04:50:42Z")

</div>

Closed on July 19, 2023, 4:50am UTC

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