The message
OSError: [WinError 126] The specified module could not be found. Error loading "…\torch\lib\c10.dll" or one of its dependencies.
Affects: ComfyUI
Why is this happening?
PyTorch needs the Microsoft Visual C++ Runtime on Windows. If it's missing or outdated, loading c10.dll fails right away. ComfyUI itself points to this solution in the Portable package's startup file.
How to fix it
- Download the current Visual C++ Redistributable directly from Microsoft:
https://aka.ms/vc14/vc_redist.x64.exeand install it. - Restart the PC.
- Start ComfyUI again. If the error still appears, also update the NVIDIA driver.
Better not: Don't download individual DLL files from download sites or copy them to System32.
Set up from scratch again
If it still doesn’t work after that, a fresh setup step by step often helps:
- Set up and maintain ComfyUI on Windows
Desktop or Portable, where the models belong, sharing models with other programs, safely installing custom nodes, updates, startup options … - Your First Image with ComfyUI
Install Comfy Desktop, learn the interface, and create your first AI image with FLUX.2 [small] 4B or Z-Image Turbo. - Your First AI Video with LTX in ComfyUI
Use LTX-2.3 in ComfyUI to create short videos with sound from text or an image. Template, files, settings, and license.
Terms for this
Similar errors
Sources
Checked on Oct 21, 2026. Didn't help? Ask in the forum and name the graphics card, program, and the full message.