pip lock
all
Lock Python packages and their dependencies into a reproducible file. Experimental feature of `pip`.
More info →Options (3)
-e, --editablebooleanGenerate a `pylock.toml` for the current project
Example:
pip lock {{[-e|--editable]}} .-r, --requirementbooleanLock dependencies from a requirements file
Example:
pip lock {{[-r|--requirement]}} {{path/to/requirements.txt}}-o, --outputbooleanSpecify a custom output file for the lock
Example:
pip lock {{[-o|--output]}} {{path/to/lockfile.toml}}Examples (4)
Generate a `pylock.toml` for the current project
pip lock [-e|--editable] .Lock dependencies from a requirements file
pip lock [-r|--requirement] path/to/requirements.txtSpecify a custom output file for the lock
pip lock [-o|--output] path/to/lockfile.tomlLock a specific package and its dependencies
pip lock packagemade by @shridhargupta | data from tldr-pages