0PricingLogin
MLOps Academy · Lesson

Pin Dependencies with requirements.txt

Freeze exact versions so installs are deterministic.

Why Pin Anything?

Your code calls libraries, and libraries change. Pinning means writing down the exact versions so today's install matches tomorrow's. 📌

The File That Lists Them

In Python, a plain text file named requirements.txt lists every package your project needs, one per line. It is your install recipe.

scikit-learn
pandas
numpy

All lessons in this course

  1. Pin Dependencies with requirements.txt
  2. Isolate Projects with Virtual Environments
  3. Seed Randomness for Repeatable Runs
  4. Capture the Full Run Config
← Back to MLOps Academy