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
numpyAll lessons in this course
- Pin Dependencies with requirements.txt
- Isolate Projects with Virtual Environments
- Seed Randomness for Repeatable Runs
- Capture the Full Run Config