1. Download
Download link
https://developer.nvidia.com/nvidia-tensorrt-8x-download
2. Decompress
The download is a zip file and needs to be decompressed.
3. cd to
TensorRT-8.5.2.2.Windows10.x86_64.cuda-11.8.cudnn8.6\TensorRT-8.5.2.2\python
4. You can see the following content
Select the whl file corresponding to the virtual environment.
For example: the python installed in my virtual swap is version 3.9, so what I need to install is
tensorrt-8.5.2.2-cp39-none-win_amd64.whl
5. cd to
TensorRT-8.5.2.2.Windows10.x86_64.cuda-11.8.cudnn8.6\TensorRT-8.5.2.2\lib
ctrl+a, after selecting all, copy ctrl+c
6. Copy all files in 5 to
NVIDIA GPU Computing Toolkit\CUDA\v11.6\bin
folder
7. Enter the following content in the corresponding virtual environment of anaconda