Three things to install before your first lesson: Python, VS Code, and the pygame library. Takes about 10 minutes total.
Go to python.org/downloads and download the installer for your operating system.
Faster alternative for Windows (skip the browser entirely): open a terminal and run:
This installs Python and adds it to PATH automatically -- no checkbox to remember. Important: close and reopen VS Code completely after this finishes.
Go to code.visualstudio.com, download, and install. This is the text editor where you'll write and run all your code.
Then install the Python extension: open VS Code, click the Extensions icon (four squares) in the left sidebar, search "Python," and install the one published by Microsoft.
Open a terminal inside VS Code: Terminal → New Terminal (or press Ctrl + `). Then run:
You should see a progress bar and "Successfully installed pygame." That's it -- import pygame will now work in your Python files.
import pygame then print(pygame.ver) -- if it prints a version number, you're ready for Module 1."Failed to build pygame" / "error building wheel"
This means pip couldn't find a ready-made pygame for your Python version -- almost always because you're on Python 3.14, which pygame doesn't fully support yet. Two fixes:
python -m pip install --user pygame-ce -- it works as a drop-in replacement, import pygame still works exactly the same."python is not recognized" / "command not found"
Python isn't on your system PATH. Reinstall using the winget command in Step 1 (adds PATH automatically), or reinstall from python.org and make sure to check "Add Python to PATH."
"No module named pygame" (even after installing)
VS Code is likely using a different Python than the one you installed pygame into. Click the Python version shown in the bottom-right corner of VS Code, and make sure the one you select matches what python --version shows in your terminal. Then open a new terminal and try running your file again.
Permission denied when installing
Add --user to the install command so it installs to your personal folder instead of a protected system folder:
If none of the fixes above work, book a quick setup call with your instructor -- we'll get your computer ready together before your first lesson.
Book a Setup Call