Virtual environments and dependencies

An environment per project, with pinned versions, is what stops "it worked yesterday" from being a real sentence.

Lesson 4.29m 5sBeginner15.2k students

Chapters

9:05
  1. 0:00What Are Virtual Environments?
  2. 0:47Creating a Virtual Environment
  3. 3:17Installing Packages
  4. 4:29Saving Dependencies
  5. 5:25Example Work Flow
  6. 7:07Virtual Environment Tips

What this lesson covers

  • Create and activate a per-project environment
  • Pin dependencies so installs are repeatable
  • Keep environment files under version control

This lesson sits in Reproducible Workflows, part of Python for Data Work. It assumes what came before it and leads directly into the next lesson in the module.

In this lesson you will

  • Create and activate a per-project environment
  • Pin dependencies so installs are repeatable
  • Keep environment files under version control

Resources