pip-tools

pip-tools is a collection of command line tools (pip-compile and pip sync) to help you manage your python package dependencies. pip-tools is typically used to guarantee that a Python application gets a deterministic set of dependencies in production.

pip-compile is used to generate a requirements.txt lock file from dependencies specified in requirements.in, pyproject.toml, setup.cfg, or setup.py. The generated file will contain the pinned versions of all dependencies, including nested dependencies.

pip-sync is used to “install/upgrade/uninstall everything necessary” to make the active virtual environment match the requirements specified in a pip-compile generated requirements.txt file.

pip-tools can be used in conjunction with PEP 621-compliant build tools such as Setuptools, Hatch or flit.

Learn More

Last updated on

Please submit corrections and feedback...