Python Mastery – From Basics to Brilliance / Modules & Packages

Requirements.txt

A file that lists all the dependencies required by your project. It allows others to replicate your environment easily.

πŸ”§ Create One:

pip freeze > requirements.txt

πŸ”§ Install from It:

pip install -r requirements.txt

πŸ’‘ Real-life Use:

  • Sharing your project with teammates

  • Deploying to cloud services (e.g., Heroku, AWS, etc.)

  • Automating environments for CI/CD pipelines