Win10 system, install tensorrt in anaconda virtual environment (for personal use)

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

Insert image description here
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

Insert image description here
Insert image description here

Guess you like

Origin blog.csdn.net/weixin_42283539/article/details/132428633