You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Ubuntu20.04安装python3-libnvinfer遇依赖问题,求解决方案

Ubuntu20.04(Python3.8)安装TensorRT-8依赖包失败

我在搭载Python3.8的Ubuntu20.04系统上,计划安装python3-libnvinfer和python3-libnvinfer-dev包,以此完成TensorRT-8的安装。我严格遵循NVIDIA官方步骤操作,但执行命令:

sudo apt-get install python3-libnvinfer 

时出现如下错误:

Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
python3-libnvinfer : Depends: python3 (< 3.7) but 3.8.2-0ubuntu2 is to be installed
E: Unable to correct problems, you have held broken packages.

我尝试切换到Python3.7后问题仍未解决,且Ubuntu20.04无法安装Python3.10。另外执行以下命令也遇到相同的依赖错误:

sudo apt-get install python3-libnvinfer-dev 
sudo apt-get install python3-libnvinvfer

内容的提问来源于stack exchange,提问作者Seyed Amirreza Kabodian

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.02 09:25:32