sajad torkamani

In a nutshell

pip-compile is a command-line utility (included as part of the pip-tools package) that takes a plain-text file and output a requirements.txt file that contains all the direct and indirect dependencies of your project, including their specific versions.

Workflow: Add a new dependency

Open your file and manually add an entry:

uvicorn >= 0.27.0

Run the below to generate a new requirements.txt:


Run the below to install the dependencies:

pip install -r requirements.txt
Tagged: Python