Python Quest

Track 10 · Lesson 10 of 12

Virtual environments

Understand why each project needs its own isolated set of packages, and how to create, activate, use and ignore a virtual environment on Windows, macOS and Linux.

About 40 minIntermediate3 exercises

You will be able to

  • Explain the problem virtual environments solve, with a concrete version conflict
  • Read and write the commands to create, activate and deactivate a venv on Windows, macOS and Linux
  • Explain what activation changes and how to tell which Python is running
  • Keep the environment folder out of version control with .gitignore

Included with a Formula Quest membership

It has 3 graded exercises with feedback, hints and solutions. Python Quest is included in Formula Quest memberships that cover Python; membership and billing are managed on Formula Quest.

View Formula Quest memberships

Tracks 1 and 2, the first lesson of every track, the playground and the dataset library are free.