There was a problem installing Tensorrt

一、website

二、Hardware and software environments
1.1 Hardware Environment
A800 X86 architecture
image

1.2 Software Environment
In container environment, ubuntu system is 22.04.
image
In a container environment, cuda version is 12.1.
image
image

三、specific installation
3.1 Installation Method 1---->Debian Installation

sudo apt-get install tensorrt
dpkg-query -W tensorrt
dpkg-query -W “nvinfer

![|554x49](file:///C:\Users\ADMINI~1\AppData\Local\Temp\ksohtml3820\wps1.jpg)
image
Result ------> (python cannot import tensorrt) :
image
image

3.2 Installation Method 2---->Python Package Index Installation

python3 -m pip install --upgrade pip
python3 -m pip install wheel
python3 -m pip install --upgrade tensorrt

The following problems occur:
image

Try to solve:
image
After installation, the installation of tensorrt still reported an error.
image

3.3 Installation Method 3---->TAR Installation package

website:

(1) Download and decompress the compressed package
image
image

(2) Add environment variables
image

(3) Test whether the sample is successful (success)
image

The following results are successfully printed:
image

(4) An error occurred when installing tensorrt for the python environment
image