pip – einfach erklärt
pip ist das Installationsprogramm für Python-Pakete; damit lädst du die Bausteine herunter, die ein KI-Tool braucht.
Auch: pip install, requirements.txt, PyPI
pip holt Pakete standardmäßig aus dem Python Package Index (PyPI), einem öffentlichen Verzeichnis, in das jeder Python-Software hochladen kann. Viele Projekte listen ihre benötigten Pakete in einer Datei namens requirements.txt auf.
Mit python -m pip install -r requirements.txt installierst du alle Pakete aus dieser Liste auf einmal. Wichtig ist, mit welchem Python du pip aufrufst: In einer aktivierten venv landet das Paket dort, bei ComfyUI Portable nimmst du laut Dokumentation .\python_embeded\python.exe -m pip install.
Bei PyTorch reicht ein einfaches pip install torch oft nicht, weil du die Variante für deine Grafikkarte brauchst. Der Installationsbefehl auf pytorch.org enthält dafür eine zusätzliche Paketquelle mit der CUDA-Version.
Was heißt das für dich? Rufe pip immer als python -m pip mit dem Python des jeweiligen Tools auf, dann installierst du nichts versehentlich ins falsche Verzeichnis.
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
- ComfyUI-Manager: This action is not allowed with this security level
- CUDA weg nach Installation eines Custom Nodes oder Pakets
- 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)
- faster-whisper: cublas64_12.dll is not found
- ffmpeg is required for video outputs and could not be found (Video Combine kann kein Video speichern)
- Frontend-Paket veraltet nach Update (comfyui-frontend-package)
- ImportError: DLL load failed while importing …: The specified module could not be found – einem Python-Paket fehlt eine Windows-DLL
- module 'torch' has no attribute 'float8_e4m3fn' (PyTorch zu alt für fp8)
- 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: CUDA_HOME environment variable is not set (CUDA-Toolkit mit nvcc fehlt beim Kompilieren)
- 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
- SwarmUI: Torch not compiled with CUDA enabled
- text-generation-webui: ModuleNotFoundError: No module named 'llama_cpp_binaries' (llama.cpp-Lader fehlt nach Update)
- Torch not compiled with CUDA enabled
- Transformers: FlashAttention2 has been toggled on, but … flash_attn seems to be not installed (FlashAttention fehlt)
- Weights only load failed / Unsupported global (PyTorch ab 2.6 blockiert alte .pt-Modelle, z. B. YOLO im Impact Pack)
- xFormers can't load C++/CUDA extensions (Versionskonflikt)