Pip-compile
lastmod 2026-11-10created 2022-10-052 edits
pip-compile is a command included in the pip-tools package that takes only the top-level dependencies listed in requirements.in or pyproject.toml, resolves the exact versions of all transitive dependencies, and generates requirements.txt. The resulting file records in comments which package caused each package to be installed, and can also include hashes, so you can create reproducible installation environments. Applying the generated file to an environment is the job of its counterpart, pip-sync.