Pinning Application Dependencies with pip-tools compile
pip-tools has more functionality than this, but compile alone is quite useful. Start with a loose list of dependencies in requirements.in: typer rich The requirements.in file can have things like >= and such if you have some restrictions on your dependencies. Now install pip-tools: pip install pip-tools Then, in create a requirements.txt file with compile: pip-compile requirements.in or: python -m piptools compile requirements.in The output will be shown on stdout, but also in requirements.txt: ...