Free | No tracking | Every fact with a source|German and English

Glossary / Software and setup

pip – explained simply

pip is the installer for Python packages; with it, you download the building blocks an AI tool needs.

Also: pip install, requirements.txt, PyPI

pip gets packages by default from the Python Package Index (PyPI), a public directory where anyone can upload Python software. Many projects list the packages they need in a file called requirements.txt.

With python -m pip install -r requirements.txt, you install all the packages from this list at once. What matters is which Python you use to run pip: in an activated venv, the package ends up there; for ComfyUI Portable, the documentation says to use .\python_embeded\python.exe -m pip install.

For PyTorch, a simple pip install torch is often not enough because you need the version for your graphics card. The install command on pytorch.org includes an extra package source with the CUDA version for that.

What does that mean for you? Always run pip as python -m pip with the Python for the respective tool, so you don't accidentally install anything into the wrong directory.

Related terms

Errors where that matters

Sources