Skip to main content
Albero Academy

Installation & Setup

Install Python, pick an editor, and create isolated project environments with venv.

Fundamentals10 min

Before writing real programs you need Python installed, a good editor, and a habit that saves endless pain later: a fresh virtual environment per project.

Installing Python

Download the latest Python from python.org (Windows/macOS) or install via your package manager. On Windows, tick "Add Python to PATH" during setup. Verify it:

terminal
python --version # e.g. Python 3.12.x
pip --version # pip is Python's package installer

An editor

VS Code with the Python extension is the popular default — free, fast, with autocomplete and a debugger. PyCharm is a fuller IDE. Either is fine; VS Code is a great start.

Virtual environments

A virtual environment isolates a project's packages so versions never clash between projects. Make one per project:

terminal
python -m venv .venv # create it
# activate:
source .venv/bin/activate # macOS/Linux
.venv\Scripts\activate # Windows
pip install requests # installs into THIS project only

Key takeaways

  1. 01Install Python from python.org and confirm with python --version.
  2. 02On Windows, add Python to PATH during installation.
  3. 03Use VS Code (with the Python extension) as a beginner-friendly editor.
  4. 04Create a virtual environment per project (python -m venv) to isolate dependencies.

Finished this chapter?

Mark it complete to track your progress through Python.