安装tensorrt ubuntu
时间: 2023-05-11 10:05:30 浏览: 190
可以通过以下步骤在 Ubuntu 上安装 TensorRT:
1. 下载 TensorRT 安装包:https://developer.nvidia.com/nvidia-tensorrt-download
2. 解压安装包并进入解压后的目录。
3. 运行以下命令安装 TensorRT:
```
sudo dpkg -i nv-tensorrt-*.deb
sudo apt-get update
sudo apt-get install tensorrt
```
4. 安装完成后,可以通过运行以下命令验证 TensorRT 是否已正确安装:
```
dpkg -l | grep TensorRT
```
如果输出类似于以下内容,则表示 TensorRT 已成功安装:
```
ii libnvinfer-dev 7.2.2-1+cuda11.1 amd64 TensorRT development libraries and headers
ii libnvinfer-plugin-dev 7.2.2-1+cuda11.1 amd64 TensorRT plugin libraries and headers
ii libnvinfer-plugin7 7.2.2-1+cuda11.1 amd64 TensorRT plugin libraries
ii libnvinfer7 7.2.2-1+cuda11.1 amd64 TensorRT runtime libraries
ii python3-libnvinfer 7.2.2-1+cuda11.1 amd64 Python 3 bindings for TensorRT
ii python3-libnvinfer-dev 7.2.2-1+cuda11.1 amd64 Python 3 development package for TensorRT
ii python3-libnvinfer-plugin 7.2.2-1+cuda11.1 amd64 Python 3 TensorRT plugin libraries
ii python3-libnvinfer-plugin-dev 7.2.2-1+cuda11.1 amd64 Python 3 development package for TensorRT plugin
ii python3-libnvinfer-dev 7.2.2-1+cuda11.1 amd64 Python 3 development package for TensorRT
ii tensorrt 7.2.2.3-1+cuda11.1 amd64 Meta package of TensorRT
```
阅读全文