mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-09-21 04:36:49 +08:00
Co-authored-by: Dylan <145150333+dmmqz@users.noreply.github.com> Co-authored-by: Lena Pastwa <126529524+acuteenvy@users.noreply.github.com>
557 B
557 B
pip lock
Lock Python packages and their dependencies into a reproducible file. Experimental feature of
pip. More information: https://pip.pypa.io/en/stable/cli/pip_lock/.
- Generate a
pylock.tomlfor the current project:
pip lock {{[-e|--editable]}} .
- Lock dependencies from a requirements file:
pip lock {{[-r|--requirement]}} {{path/to/requirements.txt}}
- Specify a custom output file for the lock:
pip lock {{[-o|--output]}} {{path/to/lockfile.toml}}
- Lock a specific package and its dependencies:
pip lock {{package}}