# Trouble Installing TensorRT 5.1 RC for  Tensorflow 1.13.1

**URL:** <https://forums.developer.nvidia.com/t/trouble-installing-tensorrt-5-1-rc-for-tensorflow-1-13-1/72851>\
**Category:** TensorRT\
**Created:** [April 10, 2019, 8:18pm UTC](https://forums.developer.nvidia.com/t/trouble-installing-tensorrt-5-1-rc-for-tensorflow-1-13-1/72851 "2019-04-10T20:18:44Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![sonofhotmale](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@sonofhotmale](https://forums.developer.nvidia.com/u/sonofhotmale)\
**Post date:** [April 10, 2019, 8:18pm UTC](https://forums.developer.nvidia.com/t/trouble-installing-tensorrt-5-1-rc-for-tensorflow-1-13-1/72851/1 "2019-04-10T20:18:44Z")

</div>

Attempting to use:  
TensorFlow version: 1.13.1  
Python version: 3.6.7  
CUDA Version: 10.0  
Ubuntu: 18.04

to play around with TensorRT 5.1 rc in TensorFlow. I downloaded nv-tensorrt-repo-ubuntu1804-cuda10.0-trt5.1.2.2-rc-20190227\_1-1\_amd64.deb . I got through all these steps in the installation guide:  
sudo dpkg -i  
nv-tensorrt-repo-ubuntu1x04-cudax.x-trt5.1.x.x-rc-yyyymmdd\_1-1\_amd64.deb  
$ sudo apt-key add /var/nv-tensorrt-repo-cudax.x-trt5.1.x.x-rcyyyymmdd/  
7fa2af80.pub

sudo apt-get update

But when I got to here to this, I got the following error:  
sudo apt-get install tensorrt

The following packages have unmet dependencies:  
tensorrt : Depends: libnvinfer5 (= 5.1.2-1+cuda10.0) but 5.1.2-1+cuda10.1 is to be installed  
Depends: libnvinfer-dev (= 5.1.2-1+cuda10.0) but 5.1.2-1+cuda10.1 is to be installed  
E: Unable to correct problems, you have held broken packages.

I’d sure love to try out the RC1 since it supports many more TF ops.

I don’t know what to do. I’ve reinstalled and installed packages and it is still the same. I cannot upgrade my CUDA to 10.1 because TensorFlow 1.3.1 is not compatible. Any help would greatly be appreciated. Thanks

---

<div class="post-metadata">

**Author:** ![adrianlubitz](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@adrianlubitz](https://forums.developer.nvidia.com/u/adrianlubitz)\
**Post date:** [April 11, 2019, 8:20am UTC](https://forums.developer.nvidia.com/t/trouble-installing-tensorrt-5-1-rc-for-tensorflow-1-13-1/72851/2 "2019-04-11T08:20:23Z")

</div>

I have a similar problem coming from this install guide  
[https://www.tensorflow.org/install/gpu](https://www.tensorflow.org/install/gpu)

```auto
The following packages have unmet dependencies:
 libnvinfer-dev : Depends: libnvinfer5 (= 5.0.2-1+cuda10.0) but 5.1.2-1+cuda10.1 is to be installed
E: Unable to correct problems, you have held broken packages.

```

I don’t know why it tries to install cuda10.1 because in every step cuda10.0 is explicitly mentioned.  
Hope someone has a smart answer to that!

---

<div class="post-metadata">

**Author:** ![adrianlubitz](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@adrianlubitz](https://forums.developer.nvidia.com/u/adrianlubitz)\
**Post date:** [April 11, 2019, 8:40am UTC](https://forums.developer.nvidia.com/t/trouble-installing-tensorrt-5-1-rc-for-tensorflow-1-13-1/72851/3 "2019-04-11T08:40:39Z")

</div>

Could fix my problem with the help of this post  
[https://github.com/tensorflow/tensorflow/issues/26987#issuecomment-481226004](https://github.com/tensorflow/tensorflow/issues/26987#issuecomment-481226004)

explicitly runing this

```auto
sudo apt-get install -y --no-install-recommends libnvinfer5=5.0.2-1+cuda10.0

```

helped to get rid of my problem.

For you I suggest trying these two commands:

```auto
sudo apt-get install -y --no-install-recommends libnvinfer5=5.1.2-1+cuda10.0
sudo apt-get install -y --no-install-recommends libnvinfer-dev=5.1.2-1+cuda10.0

```

Hope it fixes the problem ;)

---

<div class="post-metadata">

**Author:** ![sonofhotmale](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@sonofhotmale](https://forums.developer.nvidia.com/u/sonofhotmale)\
**Post date:** [April 11, 2019, 3:27pm UTC](https://forums.developer.nvidia.com/t/trouble-installing-tensorrt-5-1-rc-for-tensorflow-1-13-1/72851/4 "2019-04-11T15:27:27Z")

</div>

Thanks, that fixed my problem for installing tensorrt as well as the C++ libraries. Now if I wish to install the Python packages using your intuition from above:

sudo apt-get install -y --no-install-recommends python3-libnvinfer=5.1.2-1+cuda10.0  
sudo apt-get install -y --no-install-recommends python3-libnvinfer-dev=5.1.2-1+cuda10.0

I get the error:

The following packages have unmet dependencies:  
python3-libnvinfer : Depends: python3 (\< 3.6) but 3.6.7-1~18.04 is to be installed  
E: Unable to correct problems, you have held broken packages.

However, I have python3 version 3.6.7. So I am a little confused on what to do. Is removing python3 and then reinstalling it the way to go? Is there something else I should try?

---

<div class="post-metadata">

**Author:** ![adrianlubitz](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@adrianlubitz](https://forums.developer.nvidia.com/u/adrianlubitz)\
**Post date:** [April 12, 2019, 8:39am UTC](https://forums.developer.nvidia.com/t/trouble-installing-tensorrt-5-1-rc-for-tensorflow-1-13-1/72851/5 "2019-04-12T08:39:31Z")

</div>

Seems like u need a python version below 3.6 - try to install python 3.5.x and try the steps again.

---

<div class="post-metadata">

**Author:** ![NVES\_R](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/nves_r/32/14043_2.png) [@NVES\_R](https://forums.developer.nvidia.com/u/NVES_R)\
**Post date:** [April 25, 2019, 12:02am UTC](https://forums.developer.nvidia.com/t/trouble-installing-tensorrt-5-1-rc-for-tensorflow-1-13-1/72851/6 "2019-04-25T00:02:23Z")

</div>

Hi,

If you’re looking to just try out new versions of TensorRT and don’t want to have to reconfigure your machine for each (like installing a different python version), you can try using [url][https://github.com/NVIDIA/nvidia-docker[/url]](https://github.com/NVIDIA/nvidia-docker%5B/url%5D) with our containerized versions here : [TensorRT | NVIDIA NGC](https://ngc.nvidia.com/catalog/containers/nvidia:tensorrt)

You can see what configurations each container tag comes with here: [https://docs.nvidia.com/deeplearning/sdk/tensorrt-container-release-notes/rel\_19-04.html#rel\_19-04](https://docs.nvidia.com/deeplearning/sdk/tensorrt-container-release-notes/rel_19-04.html#rel_19-04)

For example, the latest NGC TensorRT image is 19.04 (2019 April), which comes with TensorRT 5.1.2.

* * *

Otherwise, please let us know if installing a different python version solved your issue as mentioned above.

Thanks,  
NVIDIA Enterprise Support

---

<div class="post-metadata">

**Author:** ![sanpreetsingh](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@sanpreetsingh](https://forums.developer.nvidia.com/u/sanpreetsingh)\
**Post date:** [July 5, 2019, 6:22am UTC](https://forums.developer.nvidia.com/t/trouble-installing-tensorrt-5-1-rc-for-tensorflow-1-13-1/72851/7 "2019-07-05T06:22:28Z")

</div>

I have tried the solutions as mentioned below

```auto
sudo apt-get install -y --no-install-recommends libnvinfer5=5.1.2-1+cuda10.0
sudo apt-get install -y --no-install-recommends libnvinfer-dev=5.1.2-1+cuda10.0

```

But still getting the error. To resolve the above error please perform the below steps

```auto
sudo apt-get install libnvinfer5=5.1.2-1+cuda10.0
sudo apt-get install libnvinfer-dev=5.1.2-1+cuda10.0

```

So I hope this may help you.

---

<div class="post-metadata">

**Author:** ![rvmanjunath5](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@rvmanjunath5](https://forums.developer.nvidia.com/u/rvmanjunath5)\
**Post date:** [March 4, 2020, 8:16am UTC](https://forums.developer.nvidia.com/t/trouble-installing-tensorrt-5-1-rc-for-tensorflow-1-13-1/72851/8 "2020-03-04T08:16:34Z")

</div>

Need version dependecies to use on ubuntu 18.04 for Tensorflow object detection packages like,  
tensorflow,tensort,cuda,cudnn.can suggest me which versions i should i use it.

---

<div class="post-metadata">

**Author:** ![TomNVIDIA](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/tomnvidia/32/14181_2.png) [@TomNVIDIA](https://forums.developer.nvidia.com/u/TomNVIDIA)\
**Post date:** [October 12, 2021, 7:47pm UTC](https://forums.developer.nvidia.com/t/trouble-installing-tensorrt-5-1-rc-for-tensorflow-1-13-1/72851/9 "2021-10-12T19:47:46Z")

</div>

Closed on October 12, 2021, 7:47pm UTC


