Hi, all:
I installed tensorrt, as well as “python-libnvinfer” successfully on debian 10 system, but when I tried to install “python3-libnvinfer”, it reported:
The following packages have unmet dependencies:
python3-libnvinfer : Depends: python3 (< 3.7) but 3.7.3-1 is to be installed
But my python3 version is 3.7.3, how could I fix this. Any help is appreciated.
I have tried this tutorial many times, it gives the same results. Is there any way I can debug to see what’s wrong?
As for NGC, I now use this in another docker, so I can’t start another one inside it.
It has been a while this thread was opened but I am facing exactly same problem.
As SunilJB suggested, I’ve clean installed all nvidia-related applications/drivers but still have a dependency problem.
Error message is exactly same as fengshuwi posted.
The following packages have unmet dependencies:
python3-libnvinfer : Depends: python3 (< 3.7) but 3.7.5-1 is to be installed
E: Unable to correct problems, you have held broken packages.
For me, it sounds like this library does not support python version higher than 3.7.
(installing python-libnvinfer (for python 2.x) has no problem. Only python3-libnvinfer causes the problem)
Currently I am using Ubuntu 19.10 with nvidia-driver-440 and cuda-10.2
Also I checked all dependency of python3-libnvinfer using following command,
sudo dpkg -i --force-overwrite python3-libnvinfer_7.0.0-1+cuda10.2_amd64.deb ─╯
Selecting previously unselected package python3-libnvinfer.
(Reading database … 224094 files and directories currently installed.)
Preparing to unpack python3-libnvinfer_7.0.0-1+cuda10.2_amd64.deb …
Unpacking python3-libnvinfer (7.0.0-1+cuda10.2) …
dpkg: dependency problems prevent configuration of python3-libnvinfer:
python3-libnvinfer depends on python3 (<< 3.7); however:
Version of python3 on system is 3.7.5-1.
dpkg: error processing package python3-libnvinfer (–install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
python3-libnvinfer
The following packages have unmet dependencies:
python3-libnvinfer : Depends: python3 (< 3.9) but 3.10.6-1~22.04 is to be installed
E: Unable to correct problems, you have held broken packages.
It looks like the latest TensorRT 8.4 GA Update 2 for x86_64 Architecture does not include support for Ubuntu 22.04 which only supports Python 3.10. I get the same error, I think the “solution” is to wait for a future version.
Are you sure about this issue ?
I have Ubuntu 20.04 LTS x86-64
I try this with Python3.7 -and Python 3.8, also I have the same problem
I don’t know how can I solve this !!!