Skip to content

Import Failed - ModuleNotFoundError: No module named 'tensorrt' #107

@alex-mitov

Description

@alex-mitov

Hello,

I'm getting an "Import Failed" error in the ComfyUI manager with this node. I've installed it on the 2nd to last version of ComfyUI portable - v0.3.31-3-g80a44b97 (2025-05-04). Here's the error message:

Error message occurred while importing the 'ComfyUI_TensorRT' module.

Traceback (most recent call last):
  File "K:\ComfyUI_windows_portable\ComfyUI\nodes.py", line 2128, in load_custom_node
    module_spec.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "K:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui_tensorrt\__init__.py", line 1, in <module>
    from .tensorrt_convert import DYNAMIC_TRT_MODEL_CONVERSION
  File "K:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui_tensorrt\tensorrt_convert.py", line 7, in <module>
    import tensorrt as trt
ModuleNotFoundError: No module named 'tensorrt'

Any ideas how to make it work?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions