Closed My12123 closed 1 year ago
FileNotFoundError: Could not find: nvinfer.dll. Is it on your PATH?
This is not specific to TRT, I don't know about windows but I think this can be fixed by set the correct PATH.
I fixed this by adding the necessary files to venv\Scripts
I fixed this by adding the necessary files to venv\Scripts
i met the same issue. but i cannot understand what you mean, could you please describe how you solve this problem? thank you so much.
@HePengguang I use the following commands and actions.
python -m venv venv
call .\venv\Scripts\activate
@rem Pre-installation steps copy files from TensorRT\onnx_graphsurgeon and TensorRT\python and place in .\
@rem Post-Installation Steps: Download and copy files from C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\bin and TensorRT\lib to .\venv\Scripts\
@rem This is necessary so as not to add to PATH.
@HePengguang It seems like the answer you're looking for is in this link. (https://cloud.tencent.com/developer/article/2169877)
@HePengguang It seems like the answer you're looking for is in this link. (https://cloud.tencent.com/developer/article/2169877)
Thanks, I had to copy the lib
files to CUDA/11.x/bin
and it fixed it!
I had the same issue, but after installing CUDA Toolkit i couldn't find the file. Does the file has been removed since v 12.x?
_I was trying to install ChatWithRTX (the exe installer failed on python dependencies), but the tensorrt crashed, the wheel file is tensorrt_llm-0.9.0-cp310-cp310-win_amd64.whl
_
These are the files in C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.6\bin
EDIT: I tried also installing version 11.8 and couldn't find nvinfer by searching in C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\
directory
Graphics processor 1 NVIDIA GeForce RTX 2060 SUPER Driver version: 31.0.15.3667 Date of development: 12.07.2023 DirectX Version: 12 (FL 12.1) Dedicated GPU memory 1.4/8.0 GB Total GPU memory 0.2/19.9 GB Graphics processor RAM 1.5/27.9 GB TensorRT-8.6.1.6
How to fix it?