A package manager automatically downloads, installs, and tracks the code libraries your project depends on, keeping their versions consistent.
Technically: A package manager resolves the dependency graph in a manifest (e.g., package.json, pyproject.toml, go.mod), fetches versioned packages from registries, and writes a lockfile pinning exact transitive versions for reproducible installs. In AI projects it governs ML framework versions (PyTorch, TensorFlow), where minor mismatches can alter numerics or break CUDA compatibility.
Category: Environment & Runtime