Create and activate virtual environments with venv
Install, upgrade, and uninstall packages with pip
Generate and use requirements.txt for reproducible environments
Understand the Python package ecosystem and PyPI
🔧 Project Setup Simulator
Click each step to walk through creating a new Python project with a virtual environment from scratch.
The Dependency Problem
Without virtual environments, every Python project on your machine shares the same global package pool. Project A needs requests 2.28, Project B needs requests 2.31 — they can't coexist. Virtual environments isolate each project's dependencies.
venv
python -m venv .venv — Creates a virtual environment in the .venv folder