Python
Programming language in which almost all local AI programs are written; required for manual installations.
- By
- Python Software Foundation
- Use
- Command line
- Price
- free
- License
- PSF-2.0
- Version
- 3.15.0 (Oct 9, 2026)
What is Python?
Many AI programs like ComfyUI run in Python and need it for manual installation. The right version is important: the newest is not always the best. ComfyUI says Python 3.13 is very well supported, 3.14 works, but some extensions cause problems. Under Windows, PyTorch currently supports only 3.10 through 3.14, so the new 3.15 is not supported yet. Portable packages and Stability Matrix bring their own Python, so you do not have to install anything.
For you if you want to install AI programs manually instead of using portable packages or Stability Matrix.
Strengths
- The foundation for almost all AI tools
- Multiple versions possible in parallel (install manager)
- Open and free
Weaknesses
- Wrong version often leads to installation errors
- Dependencies and virtual environments are confusing for beginners
- Latest version is often not yet supported by PyTorch
Does it run on your system?
| Operating system | Hardware | ||
|---|---|---|---|
| Windows | yes | NVIDIA | no |
| Linux | yes | AMD | no |
| macOS | yes | Intel Arc | no |
| Apple (M chips) | no | ||
| processor only | yes |
Python itself does not use a GPU; libraries like PyTorch handle that. Under Windows, PyTorch currently supports Python 3.10 through 3.14.
Installation
On python.org, download the Python install manager or a classic installer for a specific version. For ComfyUI, the project recommends Python 3.13 (if you have problems with extensions, 3.12).
Download programs only from the official site or the official repository.
License
Alternatives
Known errors and solutions
- '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
- Chatterbox: Attempting to deserialize object on a CUDA device but torch.cuda.is_available() is False (model wants a graphics card that PyTorch can’t see)
- CUDAExecutionProvider is not in available provider names (onnxruntime runs only on the CPU)
- DefaultCPUAllocator: not enough memory: you tried to allocate (RAM full)
- ERROR: Could not install packages due to an OSError: [WinError 5] Access is denied – pip cannot modify a file
- hipErrorNoBinaryForGpu: Unable to find code object for all current devices! (ROCm has no matching code for your AMD card)
- Hugging Face: 429 Client Error: Too Many Requests / We had to rate limit you – too many requests, you’re being throttled
- ImportError: DLL load failed while importing …: The specified module could not be found – a Python package is missing a Windows DLL
- kohya_ss: No data found. Please verify arguments (train_data_dir must be the parent of folders with images) (training images not found)
- module 'torch' has no attribute 'float8_e4m3fn' (PyTorch too old for fp8)
- No matching distribution found for torch (wrong Python version)
- No module named 'triton' on Windows (triton-windows missing)
- nvidia-smi: command not found in WSL (CUDA not available in WSL — the only correct driver is the Windows driver)
- OSError: [WinError 1455] The paging file is too small for this operation to complete (Windows paging file is too small)
- OSError: CUDA_HOME environment variable is not set (CUDA toolkit with nvcc is missing during compilation)
- 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: CUDA error: an illegal memory access was encountered – the graphics card accessed invalid memory
- RuntimeError: espeak not installed on your system (speech output cannot find espeak-ng)
- RuntimeError: No CUDA GPUs are available (PyTorch does not see a usable NVIDIA graphics card)
- 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)
- Transformers: FlashAttention2 has been toggled on, but … flash_attn seems to be not installed (FlashAttention missing)
- UserWarning: Torch was not compiled with flash attention – usually harmless on Windows
- venv activation blocked: running scripts is disabled on this system
Sources
- https://www.python.org/downloads/windows
- https://docs.python.org/3/license.html
- https://raw.githubusercontent.com/comfyanonymous/ComfyUI/master/README.md
- https://pytorch.org/get-started/locally/
Checked on Oct 21, 2026. Questions about Python? Ask in the forum.