
Setup Guide 1: Installing Python and VS Code: Your Computer, Ready to Code
- Date 8 September 2026
- Categories Computer Vision
- Comments 0 comment
Before you can run any Python code, including YOLO, you need somewhere to write and run it. This guide gets your computer ready, nothing YOLO-specific yet.
If you read the post on running a pretrained YOLO model and got stuck before you even reached the interesting part, because you'd never opened a terminal or installed Python before, this guide is for you. It's the first of two setup posts, this one gets your computer itself ready. The second covers installing YOLO and running your first detection.
Once you've worked through both, you'll be able to follow the rest of the YOLO series without getting stuck on setup.
What You'll Do in This Post
- Step 1: Install Python
- Step 2: Install VS Code
- Step 3: Open a terminal inside VS Code
- Step 4: Create a project folder
Each step ends with a quick way to check it actually worked before you move to the next one, so you'll always know where you stand.
1Install Python
Python is the programming language YOLO runs on. If you're not sure whether you already have it, open a terminal (more on finding this in Step 3) and type:
python --version
If you see a version number back, like Python 3.11.4, you're set and can skip ahead to Step 2. If you see an error instead, you'll need to install it:
- Windows or Mac: go to python.org/downloads, download the installer for your system, and run it.
- Mac users specifically: your Mac may already have an old, built-in version of Python. Ignore it, it's not meant for general use, and the python.org installer will set up a proper, current version alongside it.
Windows: Don't Miss This Checkbox
On the very first screen of the Windows installer, there's a checkbox at the bottom labelled "Add python.exe to PATH." Tick it before clicking install. If you miss this, your computer won't know how to find Python when you type commands, and you'll need to reinstall to fix it.
Checkpoint
Open a terminal and type python --version again. If you see a version number, Python is installed correctly and you're ready for Step 2.
2Install VS Code
VS Code (Visual Studio Code) is a free code editor, essentially a text editor built specifically for writing and running code. It's what you'll use to write your Python files and run them.
Download it from code.visualstudio.com and install it like any other program.
Once it's open, install one extension that makes everything else easier:
- Click the square icon on the left sidebar (Extensions)
- Search for "Python"
- Install the official one published by Microsoft
This gives VS Code the ability to understand Python code properly, rather than treating it as plain text.
Checkpoint
In the Extensions sidebar, search "Python" again. If it shows as already installed rather than offering an install button, you're set for Step 3.
3Open a Terminal Inside VS Code
A terminal is just a place to type commands instead of clicking buttons. Every step from here on, in this post and the next, happens inside one.
Inside VS Code, open the menu at the top and go to Terminal → New Terminal. A panel opens at the bottom of the window, that's your terminal. Everything you type from this point happens there.
Checkpoint
You should see a panel at the bottom of VS Code with a blinking cursor, ready for you to type. If it's there, Step 3 is done.
4Create a Folder for This Project
Before installing anything else, create a folder somewhere on your computer to keep this work in, for example a folder called yolo-practice on your Desktop. Open that folder in VS Code using File → Open Folder, then open a new terminal inside it (Step 3 again), so anything you install and any files you create stay together in one place.
Checkpoint
Look at VS Code's file explorer sidebar on the left, your folder name should appear at the top. Check your terminal too, the path shown should end in your folder's name. Both matching means you're ready for the next post.
Your Computer Is Ready
Python and VS Code are installed, and you know how to open a terminal and keep your project organised. That's the generic part done, the same setup you'd use for any Python project, not just YOLO.
Next: installing YOLO itself and running your first detection.
You may also like
Blink to Snap: The Future of Hands-Free Photography
Setup Guide 2: Installing YOLO and Running Your First Detection
