ImportError: DLL load failed while importing …: The specified module could not be found – a Python package is missing a Windows DLL
A Python package with compiled code cannot find a required DLL file when loading.
The message
ImportError: DLL load failed while importing _framework_bindings: The specified module could not be found. (deutsch: Das angegebene Modul wurde nicht gefunden.)
Affects: Python, ComfyUI, AUTOMATIC1111 Stable Diffusion WebUI, Stable Diffusion WebUI Forge, TextGen (text-generation-webui)
Why is this happening?
Many packages include compiled parts (.pyd files) that need additional Windows DLLs. The Microsoft Visual C++ Runtime (Visual C++ Redistributable) is the most commonly missing one. Since Python 3.8, Python also no longer looks for such DLLs via PATH or the current folder, but only in system folders, in the .pyd file’s folder, and in folders that the package itself exposes.
How to fix it
- Read the name after “while importing” and the paths in the traceback. That tells you which package is affected. If it belongs to
torchand mentionsc10.dll, use the separate entry for WinError 126. - Install the current Microsoft Visual C++ Redistributable (x64) directly from Microsoft: https://aka.ms/vc14/vc_redist.x64.exe.
- Then restart the terminal or the PC and launch the program again.
- Pay attention to the architecture: the Redistributable must match the program’s architecture. AI programs run with 64-bit Python, so you need the x64 package.
- If the package needs DLLs from another program (for example CUDA libraries), since Python 3.8 it is not enough to add their folder to PATH. In that case, follow the package’s guide for where the files belong.
Better not: Do not download individual DLL files from DLL download sites; install only packages signed by Microsoft.
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
- No matching distribution found for torch (wrong Python version)
- pip: Microsoft Visual C++ 14.0 or greater is required
- 'python' is not recognized or opens the Microsoft Store
- ERROR: Could not install packages due to an OSError: [WinError 5] Access is denied – pip cannot modify a file
- Path too long: Filename too long / Windows Long Path support
Sources
- https://docs.python.org/3/whatsnew/3.8.html
- https://github.com/google/mediapipe/issues/1839
- https://higra.readthedocs.io/en/latest/troubleshooting.html
- https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist
Checked on Oct 27, 2026. Didn't help? Ask in the forum and name the graphics card, program, and the full message.