Python for Data Work
LESSON 4.2

Virtual environments and dependencies

Learn key techniques and workflows in Python for Data Work.

9m
beginner
15,201 students

Overview

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

In this lesson you will:

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

Pro Tip

Use caching and revalidation wisely to ensure your app stays fast and data remains fresh without unnecessary requests.

Resources