Skip to content

ComfyUI_TensorRT not installed #6827

@sertygo

Description

@sertygo

Your question

Nothing helps with the installation - I completely reinstalled ComfyUI (I tried ComfyUI_windows_portable_nvidia.7z and ComfyUI Setup 0.4.18 - x64 from https://www.comfy.org/download), reinstalled python. I also tried to install manually - after installation everything is the same.

Adding extra search path custom_nodes C:\Users\PAVEL\Documents\ComfyUI\custom_nodes/
Adding extra search path download_model_base C:\Users\PAVEL\Documents\ComfyUI\models
Adding extra search path custom_nodes C:\Users\PAVEL\AppData\Local\Programs\@comfyorgcomfyui-electron\resources\ComfyUI\custom_nodes
Setting output directory to: C:\Users\PAVEL\Documents\ComfyUI\output
Setting input directory to: C:\Users\PAVEL\Documents\ComfyUI\input
Setting user directory to: C:\Users\PAVEL\Documents\ComfyUI\user
[START] Security scan
[DONE] Security scan
## ComfyUI-Manager: installing dependencies done.
** ComfyUI startup time: 2025-02-16 17:32:47.602
** Platform: Windows
** Python version: 3.12.8 (main, Jan 14 2025, 22:49:36) [MSC v.1942 64 bit (AMD64)]
** Python executable: C:\Users\PAVEL\Documents\ComfyUI\.venv\Scripts\python.exe
** ComfyUI Path: C:\Users\PAVEL\AppData\Local\Programs\@comfyorgcomfyui-electron\resources\ComfyUI
** ComfyUI Base Folder Path: C:\Users\PAVEL\AppData\Local\Programs\@comfyorgcomfyui-electron\resources\ComfyUI
** User directory: C:\Users\PAVEL\Documents\ComfyUI\user
** ComfyUI-Manager config path: C:\Users\PAVEL\Documents\ComfyUI\user\default\ComfyUI-Manager\config.ini
** Log path: C:\Users\PAVEL\Documents\ComfyUI\user\comfyui.log

#######################################################################
[ComfyUI-Manager] Starting dependency installation/(de)activation for the extension

[SKIP] Downgrading pip package isn't allowed: tensorrt (cur=10.8.0.43)

[ComfyUI-Manager] Startup script completed.
#######################################################################


Prestartup times for custom nodes:
   2.3 seconds: C:\Users\PAVEL\AppData\Local\Programs\@comfyorgcomfyui-electron\resources\ComfyUI\custom_nodes\ComfyUI-Manager

Checkpoint files will always be loaded safely.
Total VRAM 8192 MB, total RAM 16294 MB
pytorch version: 2.6.0+cu126
Set vram state to: NORMAL_VRAM
Device: cuda:0 NVIDIA GeForce RTX 3050 : cudaMallocAsync
Using pytorch attention
ComfyUI version: 0.3.14
[Prompt Server] web root: C:\Users\PAVEL\AppData\Local\Programs\@comfyorgcomfyui-electron\resources\ComfyUI\web_custom_versions\desktop_app
Traceback (most recent call last):
  File "C:\Users\PAVEL\AppData\Local\Programs\@comfyorgcomfyui-electron\resources\ComfyUI\nodes.py", line 2112, 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 "C:\Users\PAVEL\Documents\ComfyUI\custom_nodes/ComfyUI_TensorRT\__init__.py", line 1, in <module>
    from .tensorrt_convert import DYNAMIC_TRT_MODEL_CONVERSION
  File "C:\Users\PAVEL\Documents\ComfyUI\custom_nodes/ComfyUI_TensorRT\tensorrt_convert.py", line 7, in <module>
    import tensorrt as trt
  File "C:\Users\PAVEL\Documents\ComfyUI\.venv\Lib\site-packages\tensorrt\__init__.py", line 18, in <module>
    from tensorrt_bindings import *
ModuleNotFoundError: No module named 'tensorrt_bindings'

Cannot import C:\Users\PAVEL\Documents\ComfyUI\custom_nodes/ComfyUI_TensorRT module for custom nodes: No module named 'tensorrt_bindings'
Traceback (most recent call last):
  File "C:\Users\PAVEL\AppData\Local\Programs\@comfyorgcomfyui-electron\resources\ComfyUI\nodes.py", line 2112, 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 "C:\Users\PAVEL\Documents\ComfyUI\custom_nodes\ComfyUI_TensorRT\__init__.py", line 1, in <module>
    from .tensorrt_convert import DYNAMIC_TRT_MODEL_CONVERSION
  File "C:\Users\PAVEL\Documents\ComfyUI\custom_nodes\ComfyUI_TensorRT\tensorrt_convert.py", line 7, in <module>
    import tensorrt as trt
  File "C:\Users\PAVEL\Documents\ComfyUI\.venv\Lib\site-packages\tensorrt\__init__.py", line 18, in <module>
    from tensorrt_bindings import *
ModuleNotFoundError: No module named 'tensorrt_bindings'

Cannot import C:\Users\PAVEL\Documents\ComfyUI\custom_nodes\ComfyUI_TensorRT module for custom nodes: No module named 'tensorrt_bindings'
### Loading: ComfyUI-Manager (V3.17.7)
### ComfyUI Revision: UNKNOWN (The currently installed ComfyUI is not a Git repository)

Import times for custom nodes:
   0.0 seconds: C:\Users\PAVEL\AppData\Local\Programs\@comfyorgcomfyui-electron\resources\ComfyUI\custom_nodes\websocket_image_save.py
   0.0 seconds (IMPORT FAILED): C:\Users\PAVEL\Documents\ComfyUI\custom_nodes\ComfyUI_TensorRT
   0.0 seconds (IMPORT FAILED): C:\Users\PAVEL\Documents\ComfyUI\custom_nodes/ComfyUI_TensorRT
   0.0 seconds: C:\Users\PAVEL\AppData\Local\Programs\@comfyorgcomfyui-electron\resources\ComfyUI\custom_nodes\ComfyUI-Manager

Starting server

To see the GUI go to: http://127.0.0.1:8000
[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/alter-list.json
[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/model-list.json
[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/github-stats.json
[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/extension-node-map.json
[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/custom-node-list.json
FETCH DATA from: C:\Users\PAVEL\AppData\Local\Programs\@comfyorgcomfyui-electron\resources\ComfyUI\custom_nodes\ComfyUI-Manager\extension-node-map.json [DONE]
FETCH ComfyRegistry Data: 5/33
FETCH ComfyRegistry Data: 10/33
FETCH ComfyRegistry Data: 15/33
FETCH ComfyRegistry Data: 20/33
FETCH ComfyRegistry Data: 25/33
FETCH ComfyRegistry Data: 30/33
FETCH ComfyRegistry Data [DONE]
[ComfyUI-Manager] default cache updated: https://api.comfy.org/nodes
nightly_channel: 
https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/remote
FETCH DATA from: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/custom-node-list.json [DONE]
[ComfyUI-Manager] All startup tasks have been completed.

Logs

Other

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    StaleThis issue is stale and will be autoclosed soon.User SupportA user needs help with something, probably not a bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions