J'essayais d'installer tensorRT 7.0 dans ubuntu 18.4 (nv-tensorrt-repo-ubuntu1804-cuda10.2-trt7.0.0.11-ga-20191216_1-1_AMD64.deb) debian.
Suivi de la documentation https://docs.nvidia.com/deeplearning/tensorrt/install-guide/index.html#installing-debian .
J'obtiens l'erreur ci-dessous avec libnvinfer7. Chercher cela autour de la planète, incapable de trouver, a perdu mon temps et mon sommeil. Veuillez m'aider avec ceci:
amarnath@amarnath-Precision-T3610:/opt/pixuate$ Sudo apt install tensorrt
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:
tensorrt : Depends: libnvinfer7 (= 7.0.0-1+cuda10.2) but it is not going to be installed
Depends: libnvinfer-plugin7 (= 7.0.0-1+cuda10.2) but it is not going to be installed
Depends: libnvparsers7 (= 7.0.0-1+cuda10.2) but it is not going to be installed
Depends: libnvonnxparsers7 (= 7.0.0-1+cuda10.2) but it is not going to be installed
Depends: libnvinfer-bin (= 7.0.0-1+cuda10.2) but it is not going to be installed
Depends: libnvinfer-dev (= 7.0.0-1+cuda10.2) but it is not going to be installed
Depends: libnvinfer-plugin-dev (= 7.0.0-1+cuda10.2) but it is not going to be installed
Depends: libnvparsers-dev (= 7.0.0-1+cuda10.2) but it is not going to be installed
Depends: libnvonnxparsers-dev (= 7.0.0-1+cuda10.2) but it is not going to be installed
Depends: libnvinfer-samples (= 7.0.0-1+cuda10.2) but it is not going to be installed
Depends: libnvinfer-doc (= 7.0.0-1+cuda10.2) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Eh bien, j'ai essayé "Sudo apt-get install python3-libnvinfer-dev"
amarnath@amarnath-Precision-T3610:/opt/pixuate$ Sudo apt-get install python3-libnvinfer-dev
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-dev : Depends: python3-libnvinfer (= 7.0.0-1+cuda10.2) but it is not going to be installed
Depends: libnvinfer-dev (= 7.0.0-1+cuda10.2) but it is not going to be installed
Depends: libnvinfer-plugin-dev (= 7.0.0-1+cuda10.2) but it is not going to be installed
Depends: libnvparsers-dev (= 7.0.0-1+cuda10.2) but it is not going to be installed
Depends: libnvonnxparsers-dev (= 7.0.0-1+cuda10.2) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Dans la section d'installation de TensorRT de https://docs.nvidia.com/deeplearning/tensorrt/install-guide/index.html il y a cette phrase:
nécessite que la boîte à outils CUDA et cuDNN aient également été installés à l'aide des packages Debian ou RPM
Si vous installez la boîte à outils CUDA et cuDNN à l'aide de fichiers deb, l'erreur de dépendances non satisfaites doit être résolue.
REMARQUE: Avant d'installer, vérifiez les versions d'Ubuntu, CUDA et cuDNN que vous souhaitez installer. Dans les conseils d'installation ci-dessous, CUDA 10.2 et cuDNN 7.6.5 ont été utilisés. Ceci est testé pour TensorRT 7.0.0.
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804x86_64cuda-ubuntu1804.pin
Sudo mv cuda-ubuntu1804.pin /etc/apt/preferences.d/cuda-repository-pin-600
wget http://developer.download.nvidia.com/compute/cuda/10.2/Prod/local_installers/cuda-repo-ubuntu1804-10-2-local-10.2.89-440.33.01_1.0-1_AMD64.deb
Sudo dpkg -i cuda-repo-ubuntu1804-10-2-local-10.2.89-440.33.01_1.0-1_AMD64.deb
Sudo apt-key add /var/cuda-repo-10-2-local-10.2.89-440.33.01/7fa2af80.pub
Sudo apt-get update
Sudo apt-get -y install cuda
Téléchargez d'abord les fichiers .deb:
Après cela, installez les packages téléchargés:
Sudo dpkg -i libcudnn7_7.6.5.32-1+cuda10.2_AMD64.deb
Sudo dpkg -i libcudnn7-dev_7.6.5.32-1+cuda10.2_AMD64.deb
REMARQUE: Ces instructions d'installation proviennent des sites Web officiels de nvidia