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.
TensorRT Version: 7.2
GPU Type: GTX 2070
Nvidia Driver Version: 450.22
CUDA Version: 11.0
CUDNN Version: 126.96.36.199
Operating System + Version: Ubuntu 20.04
Python Version (if applicable): 3.8.2
Please help me solve this issue. I am trying to install tensorrt python api but nothing working out though c++ api is already installed. This command throws weird dependency error. What should I do? Do I have to recreate my virtual environment for the project and use downgraded version or is there an other alternative. Any guidance will be helpful.