00.1 Setting Up Your Computer for Development

FoundationsLesson 1 of 913,130 words7 parts
Module 00 · 0 of 9 lessons done
  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
  7. 7
  8. 8
  9. 9

Before you can build anything with large language models, you need a computer that is ready to build anything at all. This lesson takes a machine — a fresh laptop, an old one, or a borrowed one — and turns it into a proper development environment: an operating system you understand, a terminal you are not afraid of, an editor that shows you your code, the tools every later lesson relies on (git, uv, Python 3.11+), the accounts and security habits that keep your work safe, and a checklist that proves it all works. By the end you will have created the ai-path workspace, the folder every later lesson in this module adds to.

Everything here is free, needs no API key, and works on macOS, Windows and Linux. Where commands differ between operating systems you get all three forms.

What you'll learn

  • What a development environment actually is: the operating system, the shell and terminal, the editor, the language runtime, the package manager, version control, and the browser's developer tools
  • What "installed", "on the PATH" and "a version" really mean, and the difference between a program, a package, a library and a tool
  • How to choose your route on each operating system — macOS with Homebrew, Windows with WSL 2, or Linux — and the file-system pitfalls each route has
  • How to set up VS Code (or an alternative) so it is genuinely useful, not just installed
  • How to install git, uv and Python 3.11+, and why the path manages Python through uv instead of the "system Python"
  • The accounts and security hygiene every developer needs on day one: GitHub, a password manager, two-factor authentication, recovery codes, and basic device protection (disk encryption, screen lock)
  • A first-day checklist, including a small Python script that verifies your setup and diagnoses common PATH problems

What you don't need

  • Any programming experience. If you have never opened a terminal, this lesson is written for you; lesson 00.2 then teaches the terminal properly.
  • Any paid software. Every tool named here is free. VS Code, Git, uv, Python, Homebrew, WSL and GitHub Codespaces all have free tiers that cover this path.
  • An API key, a cloud account, or a GPU. You will not call a model in this lesson.

Setup

You need a computer you can install software on (your own laptop is best), about 10 GB of free disk space, and an internet connection for the downloads. You do not need to create any accounts yet — Part 6 walks you through that, and you can read the whole lesson first and do the installs afterwards.

This lesson assumes you can open a terminal and type commands. If the words "terminal", "shell" and "prompt" are new, read lesson 00.2, Part 1 first — it takes about twenty minutes and makes the rest of this module much easier. Everything you type in this lesson is explained as you go.


What you must be able to do after this lesson#

  • Explain the parts of a development environment and what PATH means
  • Choose an operating-system route (macOS, Windows with WSL 2, or Linux) for your machine
  • Install git, uv and Python 3.11+ and check each version
  • Set up VS Code and a tidy projects folder
  • Turn on two-factor authentication and a password manager
  • Run the setup-check script and fix any PATH problem it reports

Why this matters for an AI engineer#

Every later lesson in this path assumes this one is done. The jargon of the AI world sits on top of the jargon of software development, and half of "I don't understand this error" is really "I don't know what the tool is complaining about". A working environment turns vague frustration into a fixable problem.

You'll hear... You'll understand it after...
"git: command not found" or "uv isn't recognised" 5.5 Verifying every install and 7.4 Troubleshooting
"Works on my machine." 1.3 What 'installed' and 'on the PATH' mean
"Which Python is this?" / "Don't use the system Python." 5.3 Python through uv
"I edited the file in the cloud-synced folder and now git is confused." 3.2 Naming and folder rules
"I committed my API key by accident." 6.5 Secrets discipline, from day one
"Should I use Windows or WSL?" 2.3 Windows: native PowerShell vs WSL 2
"My corporate laptop won't let me install anything." 2.5 When you can't install: cloud options
"Which editor should I pick?" 4.4 The editor decision
"My teammate's script fails on my Mac but works on their Linux box." 2.6 File-system pitfalls

Part 1: What a development environment is#

1.1 The layers of your machine#

When you write software, you are not talking to the computer directly. You talk to a stack of tools, each one handing work to the next. Think of it like a kitchen:

flowchart TB
    subgraph you ["You"]
        A["Write code<br/>(editor)"]
    end
    subgraph machine ["Your computer"]
        B["Shell / terminal<br/>(type commands)"]
        C["Programs & tools<br/>(git, uv, python)"]
        D["Operating system<br/>(macOS / Windows / Linux)"]
        E["Hardware<br/>(CPU, disk, RAM, network)"]
    end
    subgraph world ["The outside world"]
        F["GitHub, package servers,<br/>API providers"]
    end
    A --> B --> C --> D --> E
    C <--> F
  • The operating system (OS) — macOS, Windows or Linux — owns the hardware and decides which programs may run. Everything else sits on top of it.
  • A terminal is a window that shows text. The shell is the program inside it that reads what you type and decides what to do. On macOS and Linux the default shell is usually zsh (older setups and most servers use bash); on Windows, PowerShell is the native shell. Lesson 00.2 explains the difference properly.
  • An editor (or integrated development environment, IDE) is where you write and read code. VS Code is the editor this path recommends, not requires.
  • A runtime is what actually executes your code. For this path the runtime is Python, managed by uv.
  • A package manager installs and updates the libraries your code depends on. uv fills that role for Python; Homebrew, winget and the Linux package managers fill it for everything else.
  • Version control — git on your machine, GitHub on the web — keeps a history of your code so you can undo, experiment and collaborate.
  • A browser with developer tools is how you inspect the web apps and APIs you will build on. Every modern browser has them.

1.2 Programs, packages, libraries and tools#

These four words get used loosely, but the differences matter when something goes wrong:

Word What it is Examples
Program Anything your computer can run: an app, a command-line tool, a script VS Code, git, uv, python3
Package A bundle of code distributed by a package manager, usually a library plus metadata The openai Python package, the ffmpeg Homebrew formula
Library Code inside a program that your program calls to reuse functionality httpx (HTTP calls), pydantic (data validation)
Tool A program that helps you build, not part of what you ship git, uv, ruff, the VS Code Python extension

The overlap is real — uv is a tool that manages packages that contain libraries used by your programs — but notice the direction: tools serve you while you work; libraries serve your code while it runs. When a tutorial says "install X", ask which of the four it is. Installing the wrong kind is the classic beginner mistake: installing a Python library globally when you needed a tool, or downloading an app when a command-line program was what the instructions meant.

1.3 What "installed", "on the PATH" and "a version" mean#

These three phrases carry most of the confusion in a first week.

Installed means the program's files exist somewhere on disk and the OS knows how to start them. On macOS and Linux, installing usually means copying files into standard folders (/usr/local, /opt/homebrew) and recording them with the package manager. On Windows it means running an installer that writes to C:\Program Files (or your user folder) and adds itself to the system.

On the PATH is the crucial one. The PATH is an environment variable — a named piece of text the operating system keeps for each program — that lists the folders the shell searches when you type a command. If you type git and the shell answers command not found, it does not mean git is missing; it usually means git is installed but its folder is not on the PATH. Lesson 00.2 teaches you to inspect and fix PATH yourself; this lesson's checklist script diagnoses the common cases.

flowchart LR
    T["You type: git --version"] --> S{"Shell searches<br/>each PATH folder<br/>in order"}
    S -->|"found in folder 2"| R["runs git"]
    S -->|"not in any folder"| E["'command not found'"]

A version is the release number of a program. git --version prints something like git version 2.54.0; uv --version prints uv 0.12.1. Versions matter because instructions say things like "Python 3.11 or newer" — you need to know which Python the command is talking to, because a machine can hold several at once. That is exactly why this path uses uv: it manages Python versions per project so "which Python" stops being a guessing game.

1.4 Your machine as a workshop#

Keep one analogy for the whole module: your computer is a workshop, and you are the craftsperson.

  • The OS is the building: walls, power, plumbing.
  • The terminal is the workbench where you give orders out loud.
  • Programs and tools are the hand tools on the wall — each has a name you call out.
  • PATH is the tool wall itself: if a tool is not hanging on the wall, calling its name does nothing, even though the tool exists in the shed.
  • The editor is your desk; the browser is the window to the outside world.
  • git is the workshop's logbook: every change recorded, every mistake reversible.
  • Accounts and passwords are the keys and the alarm system — boring until the day they save you.

Part 7 gives you a checklist that walks the workshop and confirms every tool is on the wall.


Part 2: Choosing your operating-system route#

This is the biggest decision in the lesson, and the right answer depends on the computer you actually have.

2.1 The three routes#

Your situation Recommended route Why
You have a Mac macOS natively + Homebrew macOS ships a Unix shell (zsh) and all the commands this path uses work unchanged. Apple Silicon is the fully supported Homebrew configuration; Intel Macs still work but Homebrew lists them as Tier 3 (best effort) as of November 2026, and recent macOS releases no longer target them.
You have a Windows PC Windows 11 (or Windows 10 2004+) + WSL 2 with Ubuntu WSL 2 runs a real Linux system inside Windows with near-native speed. Nearly every command, tutorial and tool in the AI world assumes a Linux shell; WSL gives you that without dual-booting or a second machine. Windows PowerShell alone works for a surprising amount, but you will hit friction (case-sensitive paths, shell syntax, tooling assumptions) throughout the path.
You have a Linux machine (or want one) Your distro natively The path's commands are Linux commands. Ubuntu, Debian, Fedora, Arch — any current distro works; the differences are only in how you install tools.
Chromebook, iPad, school laptop, locked-down work machine GitHub Codespaces (or any cloud dev environment) The whole development environment runs in a browser tab on a server. Free tier exists; see 2.5. Slower and dependent on network, but genuinely workable — many professional developers work this way.
You only have a Windows machine too old for WSL 2 Upgrade Windows if you can; otherwise Codespaces or a cheap used machine WSL 2 needs Windows 10 version 2004 (build 19041) or later, per Microsoft's documentation as of November 2026. Windows 10 itself reached end of support on 14 October 2025 (Microsoft's consumer extended-updates programme runs to 12 October 2027), so prefer Windows 11 where your hardware allows.

2.2 macOS: Homebrew and the command-line tools#

macOS is the smoothest route: Unix shell, no compatibility layer, excellent battery life for a laptop-first learner.

Step 1 — the Xcode Command Line Tools. macOS does not ship git, a compiler or most developer tools until you ask for them. Open the Terminal app (Spotlight: press Cmd+Space, type "Terminal") and run:

bash
xcode-select --install

A dialog appears asking you to install the Command Line Tools for Xcode — a few hundred megabytes of compilers and Unix tools. Click Install and wait. This gives you git, clang, make and the rest of the base toolkit. You do not need the full Xcode IDE (it's ~40 GB) for this path.

Step 2 — Homebrew. Homebrew is the package manager for macOS (and Linux): one command installs, updates and removes command-line tools and applications. The official install command, from brew.sh as of November 2026, is:

bash
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

What this does, in plain terms: it downloads a script from Homebrew's official GitHub repository and runs it with bash. The script explains what it will do, then pauses and asks for your password before installing. It installs into a prefix — /opt/homebrew on Apple Silicon (M-series chips), /usr/local on Intel Macs — and it will end with a "Next steps" section telling you to add Homebrew to your PATH. Follow those printed instructions exactly. They are two commands: one appends a line of the form eval "$(/opt/homebrew/bin/brew shellenv)" to your shell's startup file (~/.zprofile for zsh), and the other runs that same line once so the current window knows about brew straight away. Copy them from your own screen, because the path inside differs on Intel Macs (/usr/local/bin/brew). Then open a new terminal window before the verification step below.

Step 3 — verify. Open a new terminal window and run:

bash
brew --version
git --version

Homebrew 7.x is current as of November 2026 (7.0.0 was released in September 2026 per the Homebrew blog); you do not need to memorise the number — the point is that both commands print a version instead of an error.

2.3 Windows: native PowerShell vs WSL 2#

Windows gives you two environments, and choosing between them is the decision this lesson exists to make.

Windows PowerShell is Microsoft's native shell and scripting language. It is good — modern PowerShell is cross-platform and genuinely capable — and some tools (especially Microsoft/Azure ones) are smoother there. But the AI-engineering world is overwhelmingly Linux-shaped: most tutorials, most deployment targets, most open-source tools assume bash, forward-slash paths, case-sensitive filesystems and sudo. Fighting that mismatch for months is a real cost.

WSL 2 (Windows Subsystem for Linux) runs a real Linux distribution — Ubuntu by default — inside Windows. Microsoft documents it as the recommended way to run Linux development on Windows, and it is what this path assumes if you are on Windows.

Installing it, per the official Microsoft Learn page as of November 2026:

  1. You need Windows 10 version 2004 (build 19041) or later, or Windows 11. Check with winver in the Run dialog (Win+R).

  2. Open PowerShell as Administrator: right-click the Start button → Terminal (Admin) or Windows PowerShell (Admin).

  3. Run:

    powershell
    wsl --install
  4. Restart your computer when prompted. After reboot, a Ubuntu window opens and asks you to create a Linux username and password. This is a Linux account, separate from your Windows account — pick something you will remember; you will type it whenever sudo asks (Linux's "run as administrator").

  5. Install Windows Terminal (free, from the Microsoft Store or winget install Microsoft.WindowsTerminal) — it gives you tabs, splits and proper copy/paste for both PowerShell and WSL.

After setup, wsl -l -v lists your distributions and their WSL version (you want 2); wsl --set-default Ubuntu picks the default; wsl --set-version Ubuntu 2 converts an existing WSL 1 install. From PowerShell you can drop into Linux anytime by typing wsl, or run a single Linux command with wsl <command>.

WSL itself needs updating too — it is software, and Microsoft ships fixes regularly. Run wsl --update in PowerShell now and again every few months (add --web-download if the Store route fails). The WSL basic commands page lists every wsl subcommand.

The rule for this path: do everything inside WSL. Open Windows Terminal, choose the Ubuntu tab, and treat that as your computer. Windows PowerShell remains useful for Windows-specific tasks (installing Windows apps, winget), but all code, git repositories, Python projects and commands in this path happen in the Linux environment. This also means every bash command in the lessons works for you unchanged — no translation needed.

2.4 Linux: your distribution's package manager#

On Linux there is no single installer; each distribution (distro) has its own package manager:

Distro family Package manager Install a tool with
Debian / Ubuntu / Mint / Pop!_OS apt sudo apt install git
Fedora / RHEL / CentOS Stream dnf sudo dnf install git
Arch / Manjaro / EndeavourOS pacman sudo pacman -S git
openSUSE zypper sudo zypper install git

The pattern is always the same: sudo (run as administrator), the package manager's install verb, the package name. sudo will ask for your Linux password. Package names differ slightly between distros (git is nearly universal; code might be code on Ubuntu's repo or installed from Microsoft's own apt repository — the VS Code docs list per-distro instructions).

Two Linux-specific notes:

  • sudo discipline. sudo runs a command as the administrator (root). You need it to install system packages; you should never need it to run Python scripts, git commands or anything in your own ~/code folder. If a tutorial tells you to sudo pip install, close the tab — that advice is obsolete and dangerous (5.3 explains why).
  • Rolling vs fixed-release distros. Arch updates everything continuously; Ubuntu LTS pins versions for five years. Both are fine for this path — pick what the machine already runs, or Ubuntu LTS if installing fresh on an old laptop.

2.5 When you can't install: cloud options#

Sometimes the machine is not yours to change: a school Chromebook, a locked-down work laptop, a tablet. The escape hatch is a cloud development environment — a real Linux machine in a datacentre that you reach through a browser.

GitHub Codespaces is the best-known option and pairs naturally with this path (your code lives on GitHub anyway). It gives you VS Code in the browser attached to a Linux container with git, Python and uv preinstalled or one command away. The catch is cost, so here are the verified numbers:

As of November 2026, per GitHub's Codespaces billing documentation:

GitHub plan Included storage/month Included compute/month
GitHub Free (personal) 15 GB-month 120 core-hours
GitHub Pro 20 GB-month 180 core-hours

The compute figure is in core-hours, not clock hours: GitHub counts a codespace's active time multiplied by its machine type's multiplier — 2 for the default 2-core machine, 4 for 4-core, up to 32 for 32-core (the docs' pricing table lists $0.18/hour for 2-core compute and $0.36/hour for 4-core). So 120 core-hours is ~60 real hours on the default machine, and bigger machine types drain it proportionally faster. If you have no payment method on file, usage simply stops when the quota runs out — you cannot accidentally run up a bill. Codespaces also stop themselves after 30 minutes of inactivity by default, which protects the quota.

Honest assessment: ~60 real hours a month on the default machine is roughly two hours a day — enough to follow this path if you are disciplined and you stop codespaces when idle, tight if you leave environments running. Codespaces is a fallback, not the recommended route: latency makes everything feel slightly laggy, you depend on network quality, and some later lessons assume a persistent local machine. If at all possible, use a real computer.

2.6 File-system pitfalls#

Whichever route you pick, five differences between operating systems cause most cross-platform bugs later. Learn them now; lesson 00.3 and 00.7 hit them again.

Pitfall What happens The rule
Case sensitivity Linux treats Notes.md and notes.md as different files; macOS and Windows treat them as the same. A program that works on your Mac breaks on a Linux server. Always refer to files with consistent casing; never rely on the filesystem to forgive you.
Path separators Windows uses C:\Users\you\file.txt; Linux/macOS/WSL use /home/you/file.txt. Code that hard-codes \ fails on Linux and vice versa. In Python use pathlib.Path, which handles both. In shell, the lessons always show the right form.
Line endings Windows editors may save files with CRLF (\r\n); Linux/macOS use LF (\n). Git can mangle files silently. Git's core.autocrlf setting manages this; lesson 00.3 covers it, and .gitattributes makes it explicit.
Working across the WSL boundary Editing WSL files via \\wsl$ from Windows tools is much slower than working inside WSL, and some tools misbehave on the 9P filesystem bridge. Keep code inside the Linux filesystem (~/code), opened through Windows Terminal + VS Code's WSL extension — never through \\wsl$ directly.
Long paths Windows tools historically fail on paths longer than ~260 characters (MAX_PATH); deep node_modules and .venv trees hit the limit on native Windows. Opt Windows into long-path support (Windows 10 1607+ registry LongPathsEnabled) and set git config --global core.longpaths true if git still complains — 00.3 covers git config. WSL's own filesystem is not affected.

Part 3: Folder discipline#

3.1 Where code lives#

Every developer has a "code folder" — the place where projects live. This path standardises on:

text
~/code/
└── ai-path/          ← created in this lesson; every later lesson adds to it
  • ~ means "your home folder" (/Users/yourname on macOS, /home/yourname on Linux and WSL, C:\Users\yourname on Windows). Lesson 00.2 explains ~ properly.
  • ai-path (with a hyphen, all lowercase) is the workspace for the entire path. Later Module 00 lessons add tickets.db (00.7) and a notes/ folder to it; the later module projects (aitoolkit in 01B, llm-apis in 03 and so on) are separate project folders that live alongside it under ~/code/.

Create it now, in your terminal:

bash
mkdir -p ~/code/ai-path && cd ~/code/ai-path && pwd
powershell
# Windows PowerShell (native) — but prefer doing this inside WSL, where the bash form works
mkdir "$HOME\code\ai-path" ; cd "$HOME\code\ai-path" ; pwd

The mkdir -p flag means "create parent folders too, and don't complain if it already exists" — safe to re-run. pwd prints where you are; you should see your home folder followed by /code/ai-path (on WSL/Linux/macOS) or the Windows equivalent.

3.2 Naming and folder rules#

Four rules, each learned from a real failure:

  1. No spaces in folder or file names you will use from the terminal. My Project forces you to quote "My Project" every single time, and plenty of tools still trip on it. Use my-project or my_project. (Spaces are fine in documents you only ever open by clicking.)
  2. All lowercase with hyphens (ai-path, tickets.db, first-call.py) is the near-universal convention. It avoids the case-sensitivity bug from 2.6 and matches what every tutorial assumes.
  3. Never put code inside cloud-synced folders — iCloud Drive, OneDrive, Google Drive, Dropbox. Sync clients lock files while uploading, create conflicted copy duplicates, and can corrupt .git internals mid-operation. Keep code in a plain local folder; sync the backups through git pushes instead.
  4. One project per folder, one folder per project. Don't keep loose .py files in ~/Documents; everything lives under ~/code/<project>/ so git, uv and your editor always know where they are.

3.3 Hidden files and dotfiles (a preview)#

You will soon meet files whose names start with a dot: .env, .gitignore, .venv, .python-version. On Unix systems a leading dot marks a file as hidden — ls doesn't show it by default (ls -a does). They are not secret or special to the OS; the dot is purely a convention for "configuration, not content".

Two of them matter already:

  • .env will hold your API keys later — a plain text file that must never be committed to git. Lesson 00.4 and 03.1 Part 3 own that story.
  • .gitignore tells git which files to ignore. You will create your first one in lesson 00.3.

Part 4: Your editor#

4.1 VS Code: install and first launch#

Visual Studio Code ("VS Code", not to be confused with Visual Studio, Microsoft's other product) is the most widely used code editor in the world and the one this path recommends. It is free, open source, runs on every operating system this path supports, and — critically — it works the same everywhere, so a lesson written for a Mac user works identically for a WSL user.

Install it from the official page, code.visualstudio.com/download, as of November 2026:

  • macOS: the Universal .dmg works on both Apple Silicon and Intel. VS Code supports macOS versions that still receive Apple security updates (typically the latest release and the two before it, per its requirements page as of November 2026). Drag VS Code to Applications.
  • Windows: the User Installer is the right choice for almost everyone — it installs into your profile without admin rights. (The System Installer is for machines where many users share one Windows account.) If you chose the WSL route, you still install VS Code on Windows; the WSL extension connects it to Linux.
  • Linux: .deb for Debian/Ubuntu, .rpm for Fedora/RHEL, or the Snap package; the download page detects your distro.

Alternatives that are equally official: brew install --cask visual-studio-code on macOS/Linux, winget install Microsoft.VisualStudioCode on Windows.

When you first open VS Code you get a Welcome tab and a prompt about "trusting" the folder you opened. Two settings worth knowing on day one:

  • Workspace Trust: VS Code asks whether you trust a folder before enabling features like tasks and debugging in it. For folders you created (like ~/code/ai-path) the answer is always yes. For a folder a stranger gave you, "No, I don't trust" is the safer default — it disables code that could run automatically. This is a security feature, not an inconvenience; leave it on.
  • Settings Sync: if you sign in with a free GitHub or Microsoft account, VS Code can sync your settings, keybindings and extensions across machines. Handy if you use two computers; optional.

4.2 The extensions this path uses#

Extensions add language support and tools. Open the Extensions view with Cmd+Shift+X (macOS) / Ctrl+Shift+X (Windows/Linux), or Cmd+Shift+P → "Extensions: Install Extensions". Install these:

Extension Publisher ID Why
Python ms-python.python Syntax highlighting, linting, running/debugging Python, and the bridge to your uv environments
Pylance ms-python.vscode-pylance The Python language server: autocomplete, type hints, go-to-definition. Installed automatically with the Python extension on most setups
markdownlint DavidAnson.vscode-markdownlint Lints Markdown — the lessons you are reading are Markdown, and this keeps yours clean too
Markdown Preview Mermaid Support bierner.markdown-mermaid Renders Mermaid diagrams — fenced code blocks tagged mermaid, like the ones in this lesson — in the preview pane

On Windows + WSL, also install the WSL extension (ms-vscode-remote.remote-wsl). Then, with Ubuntu running, open VS Code from the WSL terminal with code . inside ~/code/ai-path — this runs the editor's backend inside Linux, which is what makes Python tooling, file watching and the integrated terminal behave correctly. This is the setup the Microsoft WSL documentation recommends.

4.3 The ten VS Code features you will actually use#

You do not need to memorise these; recognise them when you see them:

Feature What it does How to invoke
Command Palette Every command in VS Code, searchable by name Cmd+Shift+P / Ctrl+Shift+P
Quick Open Jump to any file by name Cmd+P / Ctrl+P
Integrated terminal A real shell inside the editor — the same terminal from lesson 00.2 Ctrl+` (backtick)
Search across files Find text in every file at once, with regex and replace Cmd+Shift+F / Ctrl+Shift+F
Multi-cursor editing Put cursors on several lines and type once Cmd+D / Ctrl+D adds the next match as a cursor
Go to Definition Click a function name → jump to where it's defined F12
Format on Save Rewrites your file to a consistent style every save Enable in settings; pairs with ruff later
Split editor Two files side by side Cmd+\ / Ctrl+\
Problems panel All errors and warnings in one list Cmd+Shift+M / Ctrl+Shift+M
Toggle Sidebar Hide or show the side panels (Explorer, Search, Extensions) to focus on code Cmd+B / Ctrl+B

The integrated terminal deserves emphasis: it is a real shell (zsh on macOS, bash inside WSL, PowerShell on Windows) in a panel at the bottom of the editor. Learning the terminal (00.2) and learning the editor are the same activity — you will live in both, often at once.

4.4 The editor decision#

Editor Cost Best for Honest take for this path
VS Code Free, open source Everyone; the default recommendation Best balance of features, extensions, performance and cross-platform consistency. What most tutorials assume.
PyCharm Community Free (Community edition); Professional is paid Python specialists who want deep refactoring tools out of the box Excellent for Python, weaker for the polyglot work later modules touch (TypeScript front ends, YAML, Dockerfiles). The Community edition is genuinely good if you prefer it — nothing in the path breaks.
Cursor / Windsurf / other AI-first editors Free tiers + paid plans People who want AI autocomplete and agent features built in These are VS Code forks with AI features added. They work for this path, but: AI assistants are covered properly in 00.9, and learning on a plain editor first teaches you to read and verify code yourself — the skill that makes AI assistance safe rather than a crutch.
vim / neovim, nano, emacs Free Terminal purists; remote servers where only a terminal exists Worth learning survival skills (below), not worth making your only editor on day one.
Anything else (Sublime, Atom successors, Notepad++) Varies Personal preference The path does not depend on the editor. If you already love one, use it — just make sure it has Python syntax highlighting and a way to run commands.

Terminal-editor survival kit. Sooner or later you will edit a file on a remote server where only nano or vim exists. Learn these four facts now and you can never be trapped:

  • nano: open a file with nano filename. Move with arrow keys. Edit by just typing. Save: Ctrl+O then Enter. Quit: Ctrl+X. The shortcuts are shown at the bottom of the screen.
  • vim (and vi, its minimalist ancestor): open with vim filename. It opens in Normal mode where typing does NOT insert text — arrows and hjkl move. Press i to insert, Esc to return to Normal mode. Save and quit: :wq then Enter. Quit without saving: :q! then Enter. The classic trap is typing i hate this into Normal mode and producing gibberish — remember: Esc first, always.
  • If you are ever lost in vim, type Esc then :q! and press Enter. That always gets you out.

Part 5: Installing the tools the path needs#

Four tools cover 95% of what this path asks of your machine: git, uv (which brings Python), a modern browser, and your editor (done in Part 4). Optional extras are listed at the end.

5.1 Git#

Git is the version-control system everything else builds on. Lesson 00.3 teaches it; here you just install it.

OS Install
macOS xcode-select --install already gave you Apple's git. For the latest release: brew install git
Windows Git for Windows from git-scm.com/downloads — current release 2.56.x as of November 2026 — or winget install --id Git.Git -e --source winget. Important: accept the installer's defaults; when it asks about "Git from the command line and also from 3rd-party tools" and "checking out Windows-style / committing Unix-style line endings", the defaults (core.autocrlf=true) are what you want on Windows
Linux Your package manager: sudo apt install git / sudo dnf install git / sudo pacman -S git
WSL You are in Linux — use the Linux row (sudo apt install git; Ubuntu's WSL image usually already has it)

5.2 uv: the tool that manages Python#

uv is the package and project manager this entire path uses, built by Astral (the makers of ruff). It installs Python versions, creates project environments, installs libraries and runs your code — one fast tool instead of four (pyenv, venv, pip, pipx).

Install it from the official page, docs.astral.sh/uv, as of November 2026:

bash
# macOS, Linux and WSL — the standalone installer
curl -LsSf https://astral.sh/uv/install.sh | sh

# or via Homebrew on macOS/Linux/WSL
brew install uv

# or via winget on Windows (native PowerShell — not needed inside WSL)
winget install --id=astral-sh.uv -e
powershell
# Windows native PowerShell alternative (official uv docs)
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"

The installer places uv and uvx in ~/.local/bin and updates your shell's startup file so the command is found in new terminals. Close and reopen your terminal (or run source ~/.zshrc / source ~/.bashrc) before verifying:

bash
uv --version

If uv is "command not found" in a terminal that was already open, that is why — the PATH update only applies to new shells. uv self update upgrades it later.

5.3 Python through uv#

You do not need to install Python from python.org — uv downloads and manages Python versions for you, which is the single biggest source of "which Python am I even using?" bugs, eliminated.

The path requires Python 3.11 or newer; 3.13 is the recommended version — the reference for all lesson examples and expected outputs. Why not newer or older?

  • 3.10 reached end-of-life in October 2026 (per python.org's release schedule) — it gets no more security fixes. Do not use it.
  • 3.11 and 3.12 work fine; some library features you will meet arrive in 3.12/3.13.
  • 3.13 is the version the path's examples target — choose it and your results will match the lessons' expected outputs.
  • 3.14 and 3.15 are the current stable releases (3.15.2 is the newest as of November 2026) and work, but the path's examples target 3.13; a newer Python is a fine choice once you are comfortable.

When a lesson needs Python, uv fetches it automatically: uv python install 3.13 installs it explicitly, and uv init --python 3.13 (in 03.1 §4.2) does it as part of project creation. You can check what uv knows about with uv python list.

5.4 A modern browser#

You already have one — Safari, Edge, Chrome or Firefox all work. If your browser is ancient (check chrome://version, edge://version, or the menu → About), update it or install a current one: chrome.google.com, mozilla.org/firefox, or brew install --cask firefox. Developer tools (F12 or Cmd+Opt+I / Ctrl+Shift+I) matter from lesson 00.5 onward — take thirty seconds now to open them and see the panel; you'll use it constantly.

5.5 Verifying every install#

The universal verification ritual — run after every install in this lesson and every later one:

bash
git --version
uv --version
uv python list          # shows the Pythons uv can see/install
code --version          # if you installed the `code` shell command (see note)

Each should print a version. "command not found" means either not installed or not on PATH — 7.4 is the fix list, and check_setup.py in 7.2 automates the diagnosis.

Optional but useful extras (install when a lesson asks, not now):

  • GitHub CLI (gh) — command-line GitHub: brew install gh, winget install --id GitHub.cli, or cli.github.com. Lesson 00.4 uses it heavily.
  • Node.js — not needed for this path (everything is Python). Some developer tools you might meet later assume it; brew install node / winget install OpenJS.NodeJS when needed.
  • Docker — out of scope for this path beyond awareness (00.5 explains what it is for). If you already have it, fine; don't install it just for this.

Part 6: Accounts and security hygiene#

Software is built by teams, and "the team" starts with accounts. This part takes twenty minutes and protects everything you will build afterwards. None of it needs an API key — GitHub is free.

6.1 A GitHub account#

GitHub (github.com) is where this path's code lives: your ai-path repository, the pull requests of lesson 00.4, and eventually the portfolio projects of Module 14B. Create a free personal account:

  • Pick a username you can live with publicly — it appears in repository URLs (github.com/yourname/ai-path) and, later, on job applications. A real-name-ish handle beats xX_darkwolf_Xx. You can change it later, but your old name becomes available for anyone else to claim and @-mentions and gist links using it stop working — so pick something durable.
  • Verify your email when GitHub asks — until you do, GitHub blocks creating repositories, issues, pull requests and most other actions.
  • You do not need to fill in your profile, add a photo or write a bio today. 00.4 covers the profile README when it matters.

Free GitHub includes private repositories, GitHub Actions minutes and the Codespaces quota from 2.5 — everything this path needs.

6.2 A password manager#

You are about to accumulate credentials: GitHub, email, and later one account per AI provider (OpenAI, Anthropic, Google, OpenRouter — 03.1 §3.1 walks through those). Reusing passwords is how one breached site loses you everything.

Get a password manager — an app that generates a unique, long password for every site and stores them encrypted behind one master password. Reputable options: Bitwarden has a genuinely free individual tier and is the usual recommendation; 1Password is paid-only (a 14-day trial, then a subscription) but excellent if you don't mind paying. Browser-built-in managers (iCloud Keychain on Apple devices, Google Password Manager in Chrome) are acceptable minimums.

The rules that matter:

  • One unique password per account, generated by the manager, 16+ characters.
  • A strong master password you have written down somewhere safe (paper, not a file on the same computer).
  • The manager's browser extension so passwords fill without copy-paste — copy-paste into the wrong window is how credentials leak.

6.3 Two-factor authentication and recovery codes#

Two-factor authentication (2FA) means a password alone is not enough: after your password, the site asks for a second proof — a code from an app, a tap on a security key, or a biometric. GitHub supports authenticator apps (TOTP), passkeys/security keys, GitHub Mobile, and SMS in limited countries (per GitHub's 2FA documentation as of November 2026). Turn it on for GitHub immediately: Settings → Password and authentication → Enable two-factor authentication.

Preference order for the second factor:

Method Security Convenience Notes
Passkey / security key (e.g. a hardware key, or the passkey built into your phone) Highest High after setup Phishing-resistant; GitHub supports passkeys
Authenticator app (e.g. 1Password, Bitwarden, Google Authenticator, Authy) High Medium TOTP codes rotate every 30 s; works offline; store the seed in your password manager
GitHub Mobile push High Medium Requires the app on your phone
SMS codes Lowest of the options High SIM-swap attacks make SMS the weakest; use only if nothing else is possible

Recovery codes are the emergency exit: GitHub shows you a set of one-time codes during 2FA setup. Store them in your password manager and print or write them down. If you lose your phone and the codes, you can lose the account — this is the most common way developers lock themselves out permanently.

6.4 Email hygiene for provider accounts#

Later in the path you will create accounts with OpenAI, Anthropic, Google and OpenRouter (03.1 §3.1). Two habits now save pain later:

  • Use an email address you check reliably — your password manager can generate a strong unique password, but it cannot read the verification email. A dedicated address (or a +tag alias like you+openai@gmail.com, which most providers accept and which lets you filter mail) keeps provider mail organised and makes "who leaked my address?" answerable.
  • Never reuse the GitHub password anywhere. Provider accounts hold billing methods and API keys; treat them as higher-value than GitHub.

6.5 Secrets discipline, from day one#

A secret is anything that grants access: an API key, a password, a token, a private SSH key. The day-one rules:

  1. Secrets live in the password manager or a .env file, never in code, never in git, never in a screenshot, never in a chat message — including chats with AI assistants (12.x safety covers this properly; the rule starts now).
  2. .env files are gitignored before the first commit — 00.3 makes this automatic.
  3. If a secret ever touches git history or a public place: rotate it first, investigate second. Deleting the file does not un-leak it. 03.1 §3.7 is the runbook.
  4. Screenshots and screen-shares get a secrets check. Before sharing your screen in a tutorial, support call or stream, close the password manager, hide the .env file, and check browser tabs. This is the #1 way real keys leak in practice.

6.6 Device hygiene: disk encryption, screen lock and updates#

Accounts are only as safe as the machine that is signed in to them. Three one-off settings, each a few minutes, cover most of the risk of a lost or stolen laptop:

  • Turn on full-disk encryption. Without it, anyone who takes the disk can read your files, your .env files and your saved browser sessions. macOS calls it FileVault (System Settings → Privacy & Security), Windows calls it BitLocker or device encryption (availability depends on your edition and hardware, so check Settings → Privacy & security), and most Linux installers offer LUKS encryption as a tick-box during installation (it cannot be added casually afterwards). Store the recovery key in your password manager, never only on the same machine.
  • Lock the screen automatically after a few minutes and require a password or biometric to unlock. Shoulder-surfing and "I left my laptop open at the coffee shop" are real leaks, and an unlocked session has your signed-in GitHub, your terminal history and your password manager's browser extension.
  • Install operating-system and browser updates. Security fixes only help once applied; on a managed work laptop, accept the update prompts your IT team sends.

On a shared or borrowed computer, do none of the setup in this lesson: sign out, use a private window, or use Codespaces (2.5) so nothing of yours stays behind.


Part 7: The first-day checklist#

You have (hopefully) worked through Parts 2–6. Now prove it. This part gives you a paper checklist, an automated one, and the fix-list for when something fails.

7.1 The paper checklist#

Tick each box before moving to lesson 00.2:

  • I know which OS route I am on (macOS native / Windows + WSL / Linux / Codespaces) and why
  • git --version, uv --version and python3 --version each print a version in my terminal
  • uv python list shows at least one Python 3.11+ (uv can install 3.13 on demand)
  • VS Code (or my chosen editor) opens ~/code/ai-path and the Python extension is installed
  • ~/code/ai-path exists and is empty except for what I choose to put there
  • I have a GitHub account with 2FA enabled and recovery codes saved
  • I have a password manager with a master password written down safely
  • Disk encryption is on, the screen locks automatically, and the recovery key is saved in my password manager (6.6)
  • I know the difference between PowerShell and WSL (if on Windows) and which one I type commands into
  • check_setup.py prints PASS for git, uv and python3

7.2 check_setup.py#

The checklist above is manual; this script automates the machine half. Save it as check_setup.py in ~/code/ai-path (or anywhere), then run it with the command shown after the note below.

bash
python3 check_setup.py

If python3 itself is not on PATH yet, run it through uv instead: uv run python check_setup.py — or uv run --python 3.13 check_setup.py to have uv fetch Python 3.13 first.

python
"""check_setup.py — verify the tools this learning path needs, and diagnose PATH problems.

Run it from any folder:  python3 check_setup.py        (or:  uv run python check_setup.py)

What it does, in order:
  1. Reports the OS, machine type and free disk space, and flags native
     Windows vs WSL.
  2. For each required tool (git, uv, python3) and each optional one (code, node),
     finds it on PATH and asks it for --version.
  3. Checks that the python3 on PATH is new enough (>= 3.11).
  4. Audits PATH itself: empty entries, duplicates, missing folders, relative
     entries — the usual reasons a command is "not found" right after install.
  5. Prints a PASS / WARN / FAIL line per check and exits 1 if anything required
     failed. It never prints secrets and never touches the network.

Pure standard library. Works on macOS, Linux, WSL and native Windows.
"""

from __future__ import annotations

import os
import platform
import re
import shutil
import subprocess
import sys
from pathlib import Path

# (command name, --version args, required?, one-line reason)
TOOLS = [
    ("git", ["--version"], True, "version control — lesson 00.3"),
    ("uv", ["--version"], True, "Python projects and packages — lesson 01B.1"),
    ("python3", ["--version"], True, "the Python interpreter — lessons 01A onward"),
    ("code", ["--version"], False, "VS Code's shell command (optional; the app works without it)"),
    ("node", ["--version"], False, "not needed for this path — listed for information only"),
]

MIN_PYTHON = (3, 11)
MIN_FREE_GIB = 2  # below this, warn: installs and caches will struggle

fails = 0
warns = 0


def report(level: str, text: str) -> None:
    """Print one result line and tally FAIL/WARN."""
    global fails, warns
    if level == "FAIL":
        fails += 1
    elif level == "WARN":
        warns += 1
    print(f"[{level:4s}] {text}")


def first_version_line(text: str) -> str:
    """Some tools print --version to stderr or over several lines; keep it tidy."""
    for line in text.splitlines():
        line = line.strip()
        if line:
            return line
    return "(no version output)"


def probe(tool: str, args: list[str]) -> str | None:
    """Ask a tool for its version; None if it can't be run at all."""
    exe = shutil.which(tool)
    if exe is None:
        return None
    try:
        proc = subprocess.run(
            [exe, *args], capture_output=True, text=True, timeout=15
        )
    except (OSError, subprocess.SubprocessError):
        return ""
    return first_version_line(proc.stdout + proc.stderr)


def parse_python_version(text: str) -> tuple[int, ...] | None:
    """'Python 3.13.1' -> (3, 13, 1). Returns None if it doesn't look like Python."""
    m = re.search(r"(\d+)\.(\d+)(?:\.(\d+))?", text)
    if not m:
        return None
    return tuple(int(g or 0) for g in m.groups())


def check_os_and_disk() -> None:
    print("== Machine ==")
    system = platform.system()
    machine = platform.machine()
    print(f"     OS      : {system} {platform.release()} ({machine})")
    if os.name == "nt":
        report("WARN", "native Windows detected: this path assumes WSL 2 for its commands — see lesson 00.1, 2.3")
    elif "microsoft" in platform.release().lower():
        report("PASS", "WSL detected — the recommended route for this path")
    home = Path.home()
    try:
        free_gib = shutil.disk_usage(home).free / (1024**3)
        print(f"     Home    : {home}")
        print(f"     Free    : {free_gib:.1f} GiB on the home volume")
        if free_gib < MIN_FREE_GIB:
            report("WARN", f"only {free_gib:.1f} GiB free — installs and caches will struggle")
        elif not os.access(home, os.W_OK):
            report("FAIL", "home folder is not writable")
        else:
            report("PASS", "home folder exists and is writable")
    except OSError as exc:
        report("WARN", f"could not check disk space: {exc}")
    print()


def check_tools() -> None:
    print("== Tools on PATH ==")
    for tool, args, required, why in TOOLS:
        version = probe(tool, args)
        if version is None:
            level = "FAIL" if required else "WARN"
            report(level, f"{tool:8s} not found on PATH — {why}")
            print(f"           install: see lesson 00.1, Part 5")
        elif version == "":
            report("WARN", f"{tool:8s} found but '{tool} --version' failed")
        else:
            report("PASS" if required else "INFO", f"{tool:8s} {version}")
    print()


def check_python_version() -> None:
    print("== Python version ==")
    version = probe("python3", ["--version"])
    parsed = parse_python_version(version or "")
    if parsed is None:
        report("FAIL", "python3 --version did not print a recognisable version")
        print()
        return
    print(f"     python3 reports: {version}")
    print(f"     running script  : Python {platform.python_version()} "
          f"({sys.executable})")
    if parsed >= MIN_PYTHON:
        report("PASS", f"python3 is {'.'.join(map(str, parsed[:2]))}.x — meets the 3.11+ minimum")
    else:
        report("FAIL", f"python3 is too old ({version}); the path needs 3.11+ — let `uv` manage Python (lesson 00.1, 5.3)")
    print()


def check_path() -> None:
    print("== PATH audit ==")
    raw = os.environ.get("PATH", "")
    if not raw:
        report("FAIL", "PATH is empty — nothing will be found")
        print()
        return
    sep = ";" if os.name == "nt" else ":"
    entries = [e for e in raw.split(sep)]
    print(f"     {len(entries)} entries")

    if any(e == "" for e in entries):
        report("WARN", "PATH contains an empty entry — it means 'current directory', a minor security smell")

    seen: dict[str, int] = {}
    for e in entries:
        key = os.path.normcase(os.path.normpath(e)) if e else ""
        seen[key] = seen.get(key, 0) + 1
    dupes = sorted(k for k, n in seen.items() if n > 1 and k)
    if dupes:
        report("WARN", f"PATH contains duplicate folders: {dupes[:3]}{'...' if len(dupes) > 3 else ''}")
    else:
        report("PASS", "no duplicate PATH entries")

    missing = [e for e in entries if e and not Path(e).expanduser().exists()]
    if missing:
        report("WARN", f"{len(missing)} PATH folder(s) do not exist (often left behind by uninstalled tools):")
        for e in missing[:5]:
            print(f"           {e}")
        if len(missing) > 5:
            print(f"           ... and {len(missing) - 5} more")
    else:
        report("PASS", "every PATH folder exists")

    relative = [e for e in entries if e and not os.path.isabs(os.path.expanduser(e))]
    if relative:
        report("WARN", f"{len(relative)} PATH entries are relative paths: {relative[:3]}")

    spaced = [e for e in entries if " " in e]
    if spaced:
        report("INFO", f"{len(spaced)} PATH entries contain spaces (legal, but quote paths in scripts): {spaced[:2]}")
    print()


def main() -> int:
    print("check_setup.py — development environment check\n")
    check_os_and_disk()
    check_tools()
    check_python_version()
    check_path()
    print("== Summary ==")
    if fails:
        report("FAIL", f"{fails} required check(s) failed — work through lesson 00.1, Part 7")
    elif warns:
        report("WARN", f"all required tools present; {warns} warning(s) worth a look")
    else:
        report("PASS", "environment looks ready for the path")
    return 1 if fails else 0


if __name__ == "__main__":
    sys.exit(main())

7.3 Running it and reading the report#

Example output · illustrative31 lines
check_setup.py — development environment check

== Machine ==
     OS      : Darwin 27.2.0 (arm64)
     Home    : /Users/learner
     Free    : 140.2 GiB on the home volume
[PASS] home folder exists and is writable

== Tools on PATH ==
[PASS] git      git version 2.54.0 (Apple Git-157)
[PASS] uv       uv 0.12.1 (Homebrew 2026-07-31 aarch64-apple-darwin)
[PASS] python3  Python 3.14.6
[WARN] code     not found on PATH — VS Code's shell command (optional; the app works without it)
           install: see lesson 00.1, Part 5
[INFO] node     v26.5.1

== Python version ==
     python3 reports: Python 3.14.6
     running script  : Python 3.14.6 (/opt/homebrew/opt/python@3.14/bin/python3.14)
[PASS] python3 is 3.14.x — meets the 3.11+ minimum

== PATH audit ==
     56 entries
[WARN] PATH contains duplicate folders: ['/Users/learner/.local/bin', ...]
[WARN] 37 PATH folder(s) do not exist (often left behind by uninstalled tools):
           /opt/homebrew/opt/php@8.0/sbin
           /opt/homebrew/opt/php@8.0/bin
           ... and 32 more

== Summary ==
[WARN] all required tools present; 3 warning(s) worth a look

How to read it:

  • PASS on git/uv/python3 is the goal. WARN on code or node is fine — both are optional.
  • PATH warnings are clues, not errors. Missing folders accumulate every time you uninstall a tool (the PATH entry stays behind). They are harmless clutter — but a missing folder that should contain your tool is exactly why uv or git might be "not found". If a required tool FAILs, check whether its install folder appears in the missing list.
  • The exit code matters for scripts: echo $? prints 0 on success, 1 if a required check failed. Later lessons' projects can call this script from their own checks.
  • The script uses only the Python standard library and makes no network calls — safe to run anywhere, anytime.

7.4 Troubleshooting the common failures#

Symptom Likely cause Fix
git: command not found right after installing New shell needed: installers update PATH for new terminals only Close and reopen the terminal; on Windows/WSL, fully quit Windows Terminal and reopen. Still failing? Re-run the installer or check the PATH audit in check_setup.py
uv: command not found after the install script Same as above — uv's installer edits your shell startup file (~/.zshrc etc.) Open a new terminal window. If still missing, run source ~/.zshrc (zsh) or source ~/.bashrc (bash), or check that ~/.local/bin is on PATH
python3: command not found on macOS Command Line Tools not installed Run xcode-select --install (Part 2.2)
python3 exists but is 3.9/3.10 The OS's bundled Python, too old Don't fight it — use uv (uv python install 3.13, then uv run python ...). The system Python is not yours to upgrade
permission denied when installing Missing sudo, or a folder ownership problem Linux/WSL: prefix package commands with sudo. For files in your home folder you should never need sudo — if you do, the folder is probably owned by root from an earlier mistake
Homebrew "Cowardly refusing" / permission errors in /usr/local Old Intel-Mac Homebrew directory owned by root Follow docs.brew.sh/Troubleshooting; on Apple Silicon this shouldn't happen since the prefix is /opt/homebrew
curl/installer hangs or fails Corporate proxy, firewall, or captive portal Talk to IT; you may need proxy environment variables (HTTPS_PROXY) — 00.2 covers env vars. On a locked-down machine, see Codespaces (2.5)
Windows: WSL install fails or wsl --install shows help text Windows too old, or WSL already partially installed Check winver (needs 2004+/build 19041+); run wsl --list --online to see distros, wsl --install -d Ubuntu for a specific one; see the WSL troubleshooting docs
Antivirus/quarantine deletes or blocks git, uv, Python Overzealous AV/EDR on a managed machine Ask IT to allowlist the official installers' folders; corporate machines may require admin approval for installs
Mac is Intel, not Apple Silicon (or vice versa) Wrong-download confusion Check uname -m (arm64 = Apple Silicon → /opt/homebrew; x86_64 = Intel → /usr/local). Both work for this path; Homebrew installs to the right prefix automatically (Intel is a Tier 3, best-effort configuration for Homebrew as of November 2026, so some tools may be slower to update or need extra steps)
check_setup.py says python3 is missing or fails on native Windows Windows has no python3 command by default (it is python or py, and the Microsoft Store 'app execution alias' can shadow it with a stub that opens the Store) Run the script inside WSL (the path's recommended route), or run it as uv run python check_setup.py; the FAIL for python3 on native Windows is expected until you are in WSL
Disk nearly full macOS/Windows "disk full" during installs df -h (macOS/Linux) or Settings → Storage (Windows); clear caches (uv cache clean, brew cleanup)
VS Code opens but Python "isn't found" Interpreter not selected, or system Python chosen Cmd+Shift+P → "Python: Select Interpreter" → pick the uv-managed one; the Python extension docs cover this
wsl commands work but files are "slow" Editing via \\wsl$ from Windows tools Use the WSL extension in VS Code (4.2); keep code inside the Linux filesystem

Real failures beginners hit in week one, and the one-line fix for each:

  • "I ran the Homebrew command and it asked for my password — is this a scam?" No: the installer needs admin rights to create /opt/homebrew. The script pauses and explains before doing anything. Always read what an installer prints before typing your password.
  • "I installed Python from python.org and now python and python3 are different things." Windows' installer has a checkbox "Add python.exe to PATH" and a choice between python and py launcher. It doesn't matter — the path uses uv run python, which picks the project interpreter regardless. Leave the python.org install or remove it; either is fine.
  • "My teammate's sort output differs from mine." Locale settings (LANG, LC_ALL) change sorting and case-folding. 00.2 covers LC_ALL=C for deterministic output; git repos often set .gitattributes for the same reason.
  • "I can run git in PowerShell but not in CMD, or vice versa." Different shells, different PATH views. Standardise on one (WSL/PowerShell per 2.3) and the confusion ends.
  • "The install page said 'requires admin' but I'm not an admin on this machine." School/work machines sometimes lock installs. Codespaces (2.5) is the designed escape hatch — a full Linux dev environment in the browser, free tier included.
  • "I deleted ~/code by accident." This is why git exists. Everything important gets committed and pushed to GitHub from 00.3 onward — before that, be careful with rm (00.2 teaches safe deletion).

Common misconceptions#

Misconception Reality
"If a command says 'not found', the program isn't installed." Usually it is installed — its folder just isn't on the PATH. New terminals, which/command -v and the PATH audit in check_setup.py tell you which.
"I need to install Python from python.org before anything works." uv downloads and manages Python versions itself. Installing Python separately is optional and often the source of version confusion.
"The system Python is the right Python to learn on." It belongs to the OS, is often outdated, and mixing your packages into it breaks things. uv gives each project its own Python and environment.
"VS Code is the only editor that will work." Any editor with Python highlighting works. The path deliberately does not depend on one; learn the concepts, not the keybindings.
"WSL is a virtual machine, so it's slow and second-class." WSL 2 is a lightweight VM with real Linux and near-native file/CPU performance for development. It is the recommended route on Windows, not a compromise.
"I can keep my code in iCloud Drive / OneDrive so it's backed up." Cloud-synced folders corrupt git repos and break file watching. Keep code local; git push to GitHub is your backup.
"A password manager is overkill for a learning project." You will hold API keys that cost real money within weeks. Unique passwords and 2FA from day one cost twenty minutes; recovery costs days.
"Deleting a leaked key from the repo fixes the leak." Once committed, the key lives in git history forever (and in every clone). Rotate it first — 03.1 §3.7.
"Codespaces free tier is a toy I can ignore." For learners without a capable machine it is a complete Linux dev environment — a legitimate route through the whole path, with quota limits to respect.
"I need paid software to be a developer." Everything in this lesson — editor, version control, Python, project tools, even the cloud fallback — is free.

Key takeaways#

  • A development environment is a stack: OS → shell/terminal → editor → runtime → package manager → version control → browser. Each layer has one job; knowing which layer is failing is most of debugging.
  • "On the PATH" decides whether typing a command finds the program. "Not found" usually means a PATH problem, not a missing install — check_setup.py audits exactly this.
  • Choose your route once: macOS + Homebrew, Windows + WSL 2 Ubuntu (everything in the path assumes Linux shell commands), Linux natively, or Codespaces when you can't install locally.
  • uv manages Python: no python.org install needed, no system-Python conflicts, uv run picks the right interpreter per project. Python 3.13 is the path's reference version; 3.11+ is the minimum.
  • Folder discipline: code lives in ~/code/<project>/, lowercase-hyphenated, no spaces, never inside cloud-synced folders. ~/code/ai-path is this path's workspace.
  • VS Code is the recommended editor, not a requirement — learn the transferable skills (terminal, git, debugging) and the editor choice stops mattering.
  • Security is a day-one habit: GitHub account + password manager + 2FA + recovery codes + "secrets never in code/git/screenshots" + disk encryption and an auto-locking screen (6.6). These take about half an hour and protect everything after.
  • When something breaks, work the troubleshooting table (7.4) before improvising — most first-week failures are PATH, permissions or "you need a new terminal".

Where you'll use this in the AI path#

This lesson is the floor every later module stands on. The specific skills come back immediately:

Skill from this lesson Where it is used next
Terminal, PATH, which/--version checks 00.2 The Terminal and Shell teaches the shell properly; every command in Modules 01A–14 assumes it
git and the ai-path repository 00.3 Git Fundamentals turns ai-path into a real repo; 00.4 pushes it to the GitHub account you made in Part 6
uv and Python 3.11+ 03.1 §4.1–4.2 installs uv and creates the first project; 01B.1 Project Setup with uv goes deep on environments, lockfiles and tooling
Secrets hygiene and .env 03.1 Part 3 is where your first API keys actually appear — the habits from 6.5 apply directly
check_setup.py-style verification 03.1 §4.6 has the project-level version; 01B.10 builds debugging and packaging on the same "verify, don't assume" mindset
WSL / cross-platform awareness 11C.1 Deployment is where "works on my machine" becomes a production concern; the OS-route decision from 2.1 explains why Linux is the deployment target
The ai-path workspace Every Module 00 lesson adds to it; Module 01B's aitoolkit and Module 03's llm-apis projects live alongside it

Terms introduced in this lesson#

Term Meaning
Operating system (OS) Software that owns the hardware and runs all other programs: macOS, Windows, Linux
Shell The program that reads what you type in a terminal and acts on it (zsh, bash, PowerShell, fish)
Terminal emulator The window that hosts the shell; the "terminal" you see and type into
Shell prompt The text at the start of a terminal line showing where you are and who you are (e.g. you@mac ~/code/ai-path $)
PATH An environment variable listing the folders the shell searches for commands; "on the PATH" = findable
Environment variable A named value the OS passes to every program (PATH, HOME, later API keys)
Installed A program's files exist on disk and the OS can start them
Version A program's release number (e.g. git version 2.54.0); matters because requirements say "3.11 or newer"
Program vs package vs library vs tool Runnable thing / distributed bundle / reusable code inside a program / software that helps you build
Package manager Software that installs, updates and removes packages: Homebrew, winget, apt/dnf/pacman, uv (for Python)
Runtime What executes your code — for this path, a Python interpreter managed by uv
Version control Recording code history so you can undo, experiment and collaborate; git locally, GitHub remotely
Repository (repo) A folder whose contents git tracks; ai-path becomes one in lesson 00.3
IDE / editor Interactive software for writing code; VS Code is the recommended one here
Extension A plugin that adds a language or feature to an editor
Workspace Trust VS Code's security prompt deciding whether a folder's code may run automatically
Integrated terminal A real shell panel inside the editor
Command Palette VS Code's searchable command launcher (Cmd/Ctrl+Shift+P)
WSL 2 Windows Subsystem for Linux: a lightweight real-Linux environment inside Windows 10/11
PowerShell Microsoft's shell and scripting language, native to Windows
Distribution (distro) A specific Linux packaging of the OS: Ubuntu, Debian, Fedora, Arch
Homebrew The package manager for macOS (also works on Linux/WSL): formulae and casks
Formula / cask A Homebrew package for a command-line tool / for a pre-built app
sudo "Superuser do": run one command as the administrator on Unix-like systems
Cloud development environment A remote Linux machine you develop on through a browser
GitHub Codespaces GitHub's cloud dev environments; free monthly quota on personal accounts
Cloud-synced folder A folder kept in sync by iCloud/OneDrive/Drive/Dropbox — unsafe for code
Dotfile A hidden config file (name starts with .), e.g. .env, .gitignore
Password manager An app that generates and stores unique passwords behind one master password
Two-factor authentication (2FA) Password + a second proof (app code, passkey, security key) at sign-in
TOTP Time-based one-time password: the 6-digit codes authenticator apps generate
Passkey A phishing-resistant credential stored on your device, used instead of or alongside a password
Recovery codes One-time backup codes that regain account access if you lose your 2FA method
Secret Any credential that grants access: API key, password, token, private key
Secret rotation Replacing a leaked credential with a new one — the first response to a leak
Full-disk encryption Encrypting everything on the drive (FileVault, BitLocker, LUKS) so a lost laptop does not expose your files; keep the recovery key in your password manager
Development environment The full stack of tools a machine needs to build software

All terms are also collected in the glossary.


Exercises#

Do these in order — they are the setup. Every command works on macOS, Linux and WSL; PowerShell alternatives are given where they differ. Solutions are at the bottom of each item.

  1. Pick your route (2.1). Write down — in ~/code/ai-path/notes/route.md (create the notes folder) — which OS route you chose and the one-sentence reason from the decision table that applies to you.

  2. Install and verify git (5.1). Install git for your OS, then run git --version in a new terminal. If it fails, work through 7.4 before continuing.

  3. Install uv and let it fetch Python (5.2–5.3). Run the official uv installer for your OS, open a new terminal, then:

    bash
    uv --version
    uv python install 3.13
    uv python list

    Confirm a 3.13.x interpreter appears in the list.

  4. Create the workspace (3.1). Run mkdir -p ~/code/ai-path && cd ~/code/ai-path && pwd and confirm the printed path ends in code/ai-path.

  5. Naming rules (3.2). Without creating anything, explain to yourself (or a rubber duck) why ~/code/My AI Project/final FINAL v2.py is a bad path for a coding project, then rename the idea to something compliant.

  6. Editor setup (4.1–4.3). Install VS Code, open ~/code/ai-path as a folder, install the Python and markdownlint extensions, open the integrated terminal with the shortcut from 4.3, and create a file called hello.py containing print("hello from ai-path"). Run it from the integrated terminal with python3 hello.py (or uv run python hello.py).

  7. Run the checker (7.2–7.3). Save check_setup.py from 7.2 into ~/code/ai-path, run python3 check_setup.py (or uv run python check_setup.py), and paste its summary line into your notes/route.md. Fix every FAIL before continuing; WARNs are your choice.

  8. PATH forensics (1.3, 7.4). Find out where git actually lives on your machine: which git (or command -v git / where.exe git on Windows PowerShell). Then explain in one sentence why a freshly installed tool can still produce "command not found".

  9. Accounts and 2FA (6.1–6.3). Create the GitHub account if you haven't, enable 2FA with an authenticator app or passkey, save the recovery codes in your password manager and on paper, and confirm you can sign out and back in.

  10. Secrets audit (6.5). Look at your screen as if sharing it on a stream: list every place a secret could be visible (password manager unlocked, .env files, terminal history, browser tabs) and what you would close or hide first.

  11. WSL decision rehearsal (2.3, 2.6). If you are on Windows: open PowerShell and run wsl --status and wsl -l -v (if WSL is installed). If you are not on Windows: write the three commands you would run and what each prints. Then explain in two sentences why code should live inside the Linux filesystem rather than C:\Users\... accessed via /mnt/c.

  12. Editor independence (4.4). Time-boxed: spend 15 minutes writing and running hello.py in an editor you didn't choose — nano in the terminal is enough. Note one thing that was harder and one thing that was easier than VS Code.

  13. Exit-code check (7.3). Run python3 check_setup.py; echo "exit=$?" — it should print 0 when all required checks pass and 1 when one fails. (python3 check_setup.py && echo PASS || echo FAIL is the quicker yes/no variant in bash and zsh.) Then read the script and predict which line would print FAIL if you uninstalled git. Verify by reading check_tools() again.

  14. First commit preview (lookahead). cd ~/code/ai-path && git status — if git says "not a git repository", that's expected: 00.3 creates the repo. Write down what git init will do, in your own words, before you read that lesson.

  15. The teach-back. Explain to a friend (or your notes): what PATH is, why uv manages Python, and why secrets never go in git. If any answer needs notes longer than three sentences, re-read that section.

Solutions
  1. Any reasonable answer works; the exercise is the decision, e.g. "Windows laptop → WSL 2 + Ubuntu because the path's commands are bash and deployment targets are Linux".

  2. git --version should print e.g. git version 2.56.x (Git for Windows), git version 2.54.0 (Apple Git-...) (macOS CLT), or your distro's build. If "command not found": new terminal first, then 7.4.

  3. uv --version prints uv X.Y.Z; uv python install 3.13 downloads a standalone CPython build; uv python list shows it, e.g. cpython-3.13.7-macos-aarch64-none (your exact list differs). No admin rights needed — uv installs under your home folder.

  4. Output1 line
    /Users/you/code/ai-path

    (or /home/you/code/ai-path on Linux/WSL; the path ends in code/ai-path either way).

  5. Bad because: spaces force quoting everywhere (cd "My AI Project"), capitals collide on case-insensitive filesystems, and "v2"/"final" rot immediately. Compliant version: ~/code/ai-project/.

  6. hello.py run from the integrated terminal prints:

    text
    hello from ai-path

    If VS Code asks which interpreter to use, pick the uv-managed Python or let uv run python hello.py work regardless (03.1 explains why).

  7. Summary line is one of [PASS] environment looks ready for the path, [WARN] all required tools present; N warning(s) worth a look, or [FAIL] .... All three FAIL-free states are acceptable to proceed; a FAIL on git/uv/python3 means back to Part 5.

  8. Example (macOS, illustrative): /usr/bin/git or /opt/homebrew/bin/git. Why "not found" happens: the shell only searches folders listed in PATH, and installers often update PATH for new shells only — so the file exists but this shell can't see it.

  9. Sign out → sign in → you should be prompted for the 6-digit code (or passkey touch) after the password. Recovery codes: a list of ~16 single-use codes; store in the password manager and on paper.

  10. Example answer: password manager open on screen (close it or lock it), ~/code/ai-path/.env visible in the file tree (create it later, but keep it out of screenshots), terminal scrollback showing a pasted key (clear and Ctrl+L only wipe the visible screen, so the scrollback above it survives; close that terminal tab or window, or use your terminal's "clear scrollback" command, for example Cmd+K in macOS Terminal), browser tab on a provider console showing a key (close the tab).

  11. wsl --status prints the default distro and WSL version; wsl -l -v lists distros with VERSION column showing 2. Keep code in the Linux filesystem because /mnt/c crosses the Windows↔Linux boundary on every file operation (slow, permission quirks, file-watching breakage) — ~/code inside Ubuntu is native-speed Linux storage.

  12. In nano: arrows + typing work immediately; Ctrl+O/Enter saves, Ctrl+X quits. In vim: typing in Normal mode beeps/does nothing until i; Esc then :q! always escapes. One thing harder: remembering Esc. One thing easier: zero install, works over SSH forever.

  13. echo "exit=$?" prints the script's exit code: 0 when nothing required failed, 1 otherwise (the &&/|| variant prints PASS/FAIL instead of the number). In check_tools(), the version is None branch prints FAIL for required tools when shutil.which(tool) finds nothing — i.e. git's folder isn't on PATH.

  14. git status in a non-repo prints fatal: not a git repository (or any of the parent directories): .git. git init will create a hidden .git folder recording every change — that's 00.3.

  15. Good answers: PATH = the list of folders the shell searches for a command; uv manages Python = it downloads per-project interpreters so versions never conflict; secrets never in git = committed secrets live in history forever even after deletion — rotate, don't delete.


Check yourself#

  1. Name the layers of a development environment, from the hardware up to the browser.
  2. What is the difference between a package and a library?
  3. You type git and get command not found. Give two possible causes and the first thing you check.
  4. Why does this path use uv instead of installing Python from python.org?
  5. What does mkdir -p do that plain mkdir doesn't?
  6. Why should code never live inside iCloud Drive, OneDrive or Google Drive?
  7. On Windows, why does the path recommend WSL 2 over native PowerShell for most work?
  8. What are the five file-system pitfalls in 2.6, and which one bites WSL users hardest?
  9. In vim, what three keystrokes save and quit? What gets you out no matter what?
  10. Why does check_setup.py treat code and node as optional but git, uv and python3 as required?
  11. List the four GitHub 2FA methods in order of preference, and say why SMS is last.
  12. A secret is about to be committed. What is the correct first action?
  13. GitHub Free includes how much Codespaces compute time per month as of November 2026, and what happens when it runs out with no payment method?
  14. Why is Python 3.13 the path's reference version rather than the newest stable?
  15. Name the three one-off device settings from 6.6 and the extra risk each one removes.

Further resources#


← AI Engineer Learning Path | Module 00 overview | 00.2 — The Terminal and Shell →

Esc
02.2Tokens and TokenizationHow LLMs Work · 21k wordsLesson
02.3EmbeddingsHow LLMs Work · 18k wordsLesson
07Retrieval-Augmented Generation (RAG)11 lessons · Everyone who will build LLM features that must answer from knowledge the model doesn't have in its weights: internal handbooks and help centres, contracts, ticket histories, product docs, or any corpus that changes faster than a training run. The module covers the full RAG stack — architecture, retrieval strategy, query understanding, grounded generation, citations, conversation, managed services, advanced patterns, evaluation, debugging and production operation — and shows where each major provider's managed retrieval and citation features fit (OpenAI, Anthropic, Google Gemini and OpenRouter). All code is Python.Overview
08E.1The Model Context Protocol (MCP)Protocols and Extensibility · 12k wordsLesson
↑ ↓ navigate↵ openesc close