Python 5.2The video for this lesson is on its way.
Everything else is ready: study the parts, the key terms and the quiz below.
- Part 11Why your own computer, and two projects with two versions
- Part 22Installing uv, and Python
- Part 33A project
- Part 44The virtual environment
- Part 55Adding a package
- Part 66What uv does underneath
- Part 77Our code in the project, and Jupyter
- Part 88Where environments mislead
- Part 99Recap, your challenge, and next
Python 5.2Code walkthrough9 parts
uv, Packages and Environments
Install Python and packages for a project without breaking other projects.
Loading your progress…Next: 5.3 Working with Files
In this lesson9 parts
- 01Why your own computer, and two projects with two versions
- 02Installing uv, and Python
- 03A project
- 04The virtual environment
- 05Adding a package
- 06What uv does underneath
- 07Our code in the project, and Jupyter
- 08Where environments mislead
- 09Recap, your challenge, and next
Key terms
The words this lesson introduces, each in one line. The module’s glossary collects them all.
- dependency
- A package a project needs, listed in
pyproject.toml. - lockfile
- A file recording the exact version of every dependency:
uv.lock. - project
- A folder of code with a
pyproject.tomlthat describes it. - terminal
- A window where you type commands for the computer, one line at a time: Terminal on macOS, PowerShell on Windows.
- virtual environment
- A folder with its own Python and its own installed packages, for one project:
.venv.
Quiz 5 questions
Your first pick on each question is the one that counts, and a right one earns a coin. Getting one wrong here is how the lesson sticks.
Practice
Problems to solve in your own notebook. Each states the problem, not the steps: working out the steps is the exercise. Level A applies the lesson, B combines it with earlier ones, C stretches it.
Common mistakes
What you will see when it goes wrong, why it happens, and the fix.
Where it’s used
Where this lesson’s ideas turn up in real work.