The message
File "…\text-generation-webui\modules\llama_cpp_server.py", line 10, in <module>
import llama_cpp_binaries
ModuleNotFoundError: No module named 'llama_cpp_binaries'
Affects: TextGen (text-generation-webui), Python
Why is this happening?
Since version 3 (April 2025), text-generation-webui no longer uses llama-cpp-python for GGUF models. Instead, it uses the llama_cpp_binaries package, which includes a ready-made llama.cpp server. If you only updated the program code (for example with git pull) without reinstalling the packages, you won’t have the new package. On older installations, the Python version of the environment also didn’t match the available packages.
How to fix it
- In the text-generation-webui folder, run
update_wizard_windows.batand choose “A) Update the web UI”. This also installs the missing packages. - If the updater says your Python version is outdated and a clean installation is needed, delete (or rename) the
installer_filesfolder and restartstart_windows.bat. Your models in theuser_datafolder will be preserved. - If that doesn’t help, open the program environment with
cmd_windows.batand install the packages manually:pip install -r requirements\full\requirements.txt. - If you installed text-generation-webui yourself with your own venv, activate your venv and run the same
pip installcommand there. - If you only need GGUF models, the Portable version from the Releases page is an easy alternative: It already includes all packages.
Better not: Don’t install llama-cpp-python manually: The current versions no longer use the old package, and it won’t fix the error.
Terms for this
Similar errors
- ERROR: Could not install packages due to an OSError: [WinError 5] Access is denied – pip cannot modify a file
- ImportError: DLL load failed while importing …: The specified module could not be found – a Python package is missing a Windows DLL
- 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
Sources
- https://github.com/oobabooga/textgen/issues/6908
- https://github.com/oobabooga/textgen/blob/main/README.md
- https://github.com/oobabooga/textgen/blob/main/one_click.py
Checked on Oct 27, 2026. Didn't help? Ask in the forum and name the graphics card, program, and the full message.