Python – explained simply
Python is the programming language that most AI tools are written in; many tools need a specific Python version.
Also: Python 3, python.exe
Almost all image, audio, and training programs for local AI are written in Python and use Python packages like PyTorch. To run them, your PC needs a suitable Python interpreter, meaning the program that executes Python code.
The version matters: the current stable PyTorch version requires at least Python 3.10. Some packages don’t support new Python versions right away, which is why guides often name a specific version.
Portable packages bring their own Python. ComfyUI Portable has the python_embeded folder for this; this embedded Python is independent of any system Python you may have installed.
What does that mean for you? Stick to the Python version listed in the tool’s guide, and use a separate virtual environment or a portable version for each tool.
Related terms
Errors where that matters
- 'python' is not recognized or opens the Microsoft Store
- [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate – Python does not trust the certificate (often a company proxy or antivirus)
- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.x – a package does not match the installed NumPy version
- A1111: INCOMPATIBLE PYTHON VERSION / Couldn't install torch
- Couldn't clone Stable Diffusion (Stability AI repository no longer exists)
- CUDAExecutionProvider is not in available provider names (onnxruntime runs only on the CPU)
- Custom Node: IMPORT FAILED
- Error loading c10.dll (WinError 126 / 1114)
- ERROR: Could not install packages due to an OSError: [WinError 5] Access is denied – pip cannot modify a file
- Failed building wheel for insightface (insightface for ReActor/IPAdapter FaceID won’t install)
- ffmpeg is required for video outputs and could not be found (Video Combine cannot save a video)
- 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)
- No module named 'sageattention' (starting with --use-sage-attention fails)
- No module named 'triton' on Windows (triton-windows missing)
- No module named … (missing Python package for custom node)
- OSError: [WinError 1455] The paging file is too small for this operation to complete (Windows paging file is too small)
- Path too long: Filename too long / Windows Long Path support
- pip install TTS: No matching distribution found for TTS (Coqui TTS does not fit your Python version)
- pip: error: externally-managed-environment (Linux/WSL)
- pip: Microsoft Visual C++ 14.0 or greater is required
- RuntimeError: espeak not installed on your system (speech output cannot find espeak-ng)
- Stability Matrix: module '__main__' has no attribute '__file__'
- text-generation-webui: ModuleNotFoundError: No module named 'llama_cpp_binaries' (llama.cpp loader missing after update)
- The code execution cannot continue because VCRUNTIME140.dll was not found – the Visual C++ runtime is missing (also MSVCP140.dll / VCRUNTIME140_1.dll)
- Torch not compiled with CUDA enabled
- Transformers: FlashAttention2 has been toggled on, but … flash_attn seems to be not installed (FlashAttention missing)
- venv activation blocked: running scripts is disabled on this system
- Whisper: FileNotFoundError: [WinError 2] The system cannot find the file specified – ffmpeg is not installed or is not in the PATH