Python – einfach erklärt
Python ist die Programmiersprache, in der die meisten KI-Werkzeuge geschrieben sind; viele Tools brauchen eine bestimmte Python-Version.
Auch: Python 3, python.exe
Fast alle Bild-, Audio- und Trainingsprogramme für lokale KI sind in Python geschrieben und nutzen Python-Pakete wie PyTorch. Damit sie laufen, muss auf deinem PC ein passender Python-Interpreter vorhanden sein, also das Programm, das Python-Code ausführt.
Die Version ist wichtig: Die aktuelle stabile PyTorch-Version verlangt mindestens Python 3.10. Neue Python-Versionen werden von manchen Paketen erst mit Verzögerung unterstützt, deshalb nennen Anleitungen oft eine konkrete Version.
Portable-Pakete bringen ihr eigenes Python mit. ComfyUI Portable hat dafür den Ordner python_embeded; dieses eingebettete Python ist unabhängig von einem eventuell installierten System-Python.
Was heißt das für dich? Halte dich an die Python-Version, die in der Anleitung des Tools steht, und nutze pro Tool eine eigene virtuelle Umgebung oder eine Portable-Version.
Verwandte Begriffe
Fehler, bei denen das wichtig ist
- 'python' wird nicht erkannt oder öffnet den Microsoft Store
- [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate – Python vertraut dem Zertifikat nicht (oft Firmen-Proxy oder Virenscanner)
- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.x – ein Paket passt nicht zur installierten NumPy-Version
- A1111: INCOMPATIBLE PYTHON VERSION / Couldn't install torch
- Couldn't clone Stable Diffusion (Stability-AI-Repository gibt es nicht mehr)
- CUDAExecutionProvider is not in available provider names (onnxruntime läuft nur auf der CPU)
- Custom Node: IMPORT FAILED
- ERROR: Could not install packages due to an OSError: [WinError 5] Access is denied – pip darf eine Datei nicht ändern
- Failed building wheel for insightface (insightface für ReActor/IPAdapter FaceID lässt sich nicht installieren)
- Fehler beim Laden von c10.dll (WinError 126 / 1114)
- ffmpeg is required for video outputs and could not be found (Video Combine kann kein Video speichern)
- ImportError: DLL load failed while importing …: The specified module could not be found – einem Python-Paket fehlt eine Windows-DLL
- No matching distribution found for torch (falsche Python-Version)
- No module named 'sageattention' (Start mit --use-sage-attention scheitert)
- No module named 'triton' unter Windows (triton-windows fehlt)
- No module named … (fehlendes Python-Paket für Custom Node)
- OSError: [WinError 1455] The paging file is too small for this operation to complete (Auslagerungsdatei von Windows ist zu klein)
- Pfad zu lang: Filename too long / Windows Long Path support
- pip install TTS: No matching distribution found for TTS (Coqui TTS passt nicht zu deiner 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 (Sprachausgabe findet espeak-ng nicht)
- Stability Matrix: module '__main__' has no attribute '__file__'
- text-generation-webui: ModuleNotFoundError: No module named 'llama_cpp_binaries' (llama.cpp-Lader fehlt nach Update)
- The code execution cannot proceed because VCRUNTIME140.dll was not found – die Visual C++ Runtime fehlt (auch 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 fehlt)
- venv-Aktivierung blockiert: running scripts is disabled on this system
- Whisper: FileNotFoundError: [WinError 2] The system cannot find the file specified – ffmpeg ist nicht installiert oder nicht im PATH