Skip to main content
Loading page…
Python Mastery
Chapter 7
Lesson 4 of 4
pip, PyPI & Dependencies
Contents
Notes
Tutor
Note
Building on Virtual Environments
Loading activity…
Previous
1 / 12
Continue
Contents
Notes
Discussion
Tutor
22 min
12 activities
0 of 12 done
In this lesson
1
Building on Virtual Environments
2
PyPI and pip
3
Semantic Versioning and Version Specifiers
4
requirements.txt, Lockfiles, and pyproject.toml
5
Using the `rich` Library
6
pip Commands and Their Effects
7
Semantic Versioning Specifier
8
Parse a requirements.txt
9
Always Use a Virtual Environment
10
Tip: Use uv for Dramatically Faster Dependency Management
11
requirements.txt vs pyproject.toml
12
Going Deeper: pyproject.toml is More Than a Dependency List
Objectives
Find, install, and uninstall third-party packages using pip
Read and write semantic version specifiers (PEP 440) in requirements files
Produce a requirements.txt and understand pip-tools/uv for deterministic lockfiles
Understand pyproject.toml as the modern project manifest (full coverage in the Packaging & Deployment module) and recognise its [project.dependencies] table as the successor to requirements.txt
Chapter 7 · Modules, Packages & Imports
The Import System
Writing Your Own Modules
Packages & Project Layout
pip, PyPI & Dependencies
Previous: Packages & Project Layout
Next: Higher-Order Functions