-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ImportError: DLL load failed while importing tensorrt #1446
Comments
Hi @Plasma4004 Thanks for reporting the bug. I can repro on python 3.11 with
I suspected that these libs were not getting loaded, so I tried installing cudnn-12 libs from another version using >>> import tensorrt as trt
>>> trt.__version__
'9.3.0.post12.dev1' Also note that if you are getting strange error messages like #1062, you need to first import torch followed by tensorrt. I don't know why this issue surfaced now, but it may be better to report this in the TRT package repo. Let me consult with packaging experts and get back to you. For now the workaround is to do
|
Seems like this is a known issue and we missed it in the windows packaging requirements. For now, please use the workaround mentioned above : we will fix this soon. Thanks! |
CUDA:12.4 I have followed the steps you gave.
It seems that tensorrt has been recognized normally.But when checking tensorrt-llm,it's still an error.
It doesn't seem to be able to find Tensorrt-llm.
|
And after the operation
There is a conflict in the pip package.
How do I make sure that torch doesn't conflict with 3 packages? Update 3 packages to a certain version? |
@Plasma4004 : Good to know that the import issue has been resolved. I am answering other questions inline.
There seems to be two versions of python site-packages in your local env:
|
@tp5uiuc I seem to understand that my python is downloaded from the Microsoft Store, not the official python website.The catalog downloaded by the store is different from that downloaded by the official one.This may be the cause of the error. |
Great, thanks for letting me know @Plasma4004 . I am closing the issue, but feel free to re-open in case you have more questions. |
CPU- Intel i9-13900H
GPU-NVIDIA 4060Laptop
CUDA-12.4
CUDNN-8.9.7
SYSTEM-Win11
I thought it was a tensorrt installation error, so I used 'setup_build_env.ps1'. But it still reported an error, and installed it again according to the 'https://docs.nvidia.com/deeplearning/tensorrt/install-guide/index.html#installing-zip', and it was not solved.What should I do?
PS C:\Users\Plasm> python
Python 3.10.11 (tags/v3.10.11:7d4cc5a, Apr 5 2023, 00:38:17) [MSC v.1929 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
The text was updated successfully, but these errors were encountered: