# Unable to install TensorRT

**URL:** <https://forums.developer.nvidia.com/t/unable-to-install-tensorrt/158982>\
**Category:** TensorRT\
**Created:** [November 6, 2020, 7:36pm UTC](https://forums.developer.nvidia.com/t/unable-to-install-tensorrt/158982 "2020-11-06T19:36:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![asfadsfsadfadsf](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@asfadsfsadfadsf](https://forums.developer.nvidia.com/u/asfadsfsadfadsf)\
**Post date:** [November 6, 2020, 7:36pm UTC](https://forums.developer.nvidia.com/t/unable-to-install-tensorrt/158982/1 "2020-11-06T19:36:06Z")

</div>

I have Ubuntu 20, CUDA 11.1, and TensorRT 7.2.0 which I downloaded from here: [https://developer.nvidia.com/nvidia-tensorrt-7x-download](https://developer.nvidia.com/nvidia-tensorrt-7x-download)

When I try `import tensorrt as trt`, I get:

```
no module named tensorrt

```

When I tried `sudo apt-get install python3-libnvinfer-dev` it says

```
python3-libnvinfer-dev is not going to be installed. Unable to correct problems, you have held broken packages

```

When I tried

```
 python3.8 -m pip install tensorrt-7.2.0.14-cp37-none-linux_x86_64.whl 

```

(because that whl file is in the `TensorRT-7.2.0.14/python` folder from the TensorRT I downloaded), it says

```
ERROR: tensorrt-7.2.0.14-cp37-none-linux_x86_64.whl is not a supported wheel on this platform

```

and when I try

```
sudo pip3 install tensorrt-*-cp3x-none-linux_x86_64.whl

```

I also get the `not supported wheel on this platform` error

Can anyone help?

---

<div class="post-metadata">

**Author:** ![AakankshaS](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/aakankshas/32/14047_2.png) [@AakankshaS](https://forums.developer.nvidia.com/u/AakankshaS)\
**Post date:** [November 8, 2020, 12:05pm UTC](https://forums.developer.nvidia.com/t/unable-to-install-tensorrt/158982/2 "2020-11-08T12:05:37Z")

</div>

Hi @asfadsfsadfadsf,  
The provided releases are supported on Ubuntu 18.04 and not 20.  
Alternatively you can use NGC TRT containers to avoid any system level dependency.

> **[TensorRT | NVIDIA NGC](https://catalog.ngc.nvidia.com/orgs/nvidia/containers/tensorrt)**
>
> NVIDIA TensorRT is a C++ library that facilitates high-performance inference on NVIDIA graphics processing units (GPUs). TensorRT takes a trained network and produces a highly optimized runtime engine that performs inference for that network.

Thanks!
