What does ” -r ” do in pip install -r requirements.txt

Instead of pip --help, look into pip install --help:

-r, –requirement Install from the given requirements
file. This option can be used multiple
times.

Also see these documentation paragraphs:

  • pip install
  • Requirements Files.

Leave a Comment