Module 04 of 10

Environments & Packaging

Lessons

About This Module

Almost every real Python project depends on code written by other people, and different projects often need different versions of the same library. Managing that cleanly is what environments and packaging is all about, and it saves you from the classic "it works on my machine" problem.

You'll start with pip, Python's package manager, learning how to install, upgrade, list, and remove packages. Then you'll see why virtual environments matter and how to create them with virtualenv and the built-in venv module, so each project gets its own isolated set of dependencies.

With your environment under control, you'll be ready for the next module, Version Control & Repo Hosting, where you'll learn to track changes to your code and host it online.

Lessons

4 videos
01

Python Tutorial: pip - An in-depth look at the package management system

How to install, uninstall, list, and upgrade packages with pip, and how to save and reuse your project's dependencies.

02

Python Tutorial: virtualenv and why you should use virtual environments

Why isolated environments matter, and how to create and use them with virtualenv so projects don't clash over package versions.

03

Python Tutorial: VENV (Mac & Linux) - How to Use Virtual Environments with the Built-In venv Module

Creating, activating, and sharing virtual environments on Mac and Linux using the venv module that ships with Python.

04

Python Tutorial: VENV (Windows) - How to Use Virtual Environments with the Built-In venv Module

The same venv workflow for Windows, including how to create, activate, and manage an environment from the command line.