一、website
二、Hardware and software environments
1.1 Hardware Environment
A800 X86 architecture
1.2 Software Environment
In container environment, ubuntu system is 22.04.
In a container environment, cuda version is 12.1.
三、specific installation
3.1 Installation Method 1---->Debian Installation
sudo apt-get install tensorrt
dpkg-query -W tensorrt
dpkg-query -W “nvinfer”

Result ------> (python cannot import tensorrt) :
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:
Try to solve:
After installation, the installation of tensorrt still reported an error.
3.3 Installation Method 3---->TAR Installation package
website:
(1) Download and decompress the compressed package
(2) Add environment variables
(3) Test whether the sample is successful (success)
The following results are successfully printed:
(4) An error occurred when installing tensorrt for the python environment