Development environments are isolated setups that contain all the software, libraries, and tools needed to run code for a specific project. They ensure that code runs consistently across different machines by managing dependencies and versions.
Our stack balances ease of use, reproducibility, and professional-grade tooling. This section guides you through setting up our official development stack.
Our stack prioritizes:
The course uses a modern, streamlined development stack:
Editor & AI-Assisted Workflow
Python & Dependency Management
Machine Learning Engine
Setting up your environment is a two-phase process:
uv on your machineYou only do Phase 1 once per computer. Phase 2 is repeated for each project repository you clone.
VS Code is the official editor for this course. Download and install it from the official website:
After installation, launch VS Code to verify it works.
Installing VS Code Extensions:
With VS Code open, install the required extensions:
Ctrl+Shift+X on Windows, Cmd+Shift+X on macOS)These extensions only need to be installed once and will be available for all projects.
Students can access GitHub Copilot for free through GitHub Education. After installing VS Code, visit https://education.github.com/ to verify your student status and enable Copilot access. Create a GitHub account if you don't have one already.
Once you have access, sign in to GitHub Copilot in VS Code using the extension's sign-in prompt.
uv must be installed before you can set up any course projects. Choose the instructions for your operating system:
Open PowerShell (right-click Start menu โ Windows PowerShell or Terminal) and run:
powershell -ExecutionPolicy ByPass -NoProfile -Command "irm https://astral.sh/uv/install.ps1 | iex"This installer will:
uv to your user directoryuv to your PATH automaticallyVerify the installation:
uv --versionYou should see output like uv 0.x.x or similar.
If uv is not found, open a new PowerShell window and try
again. The installer modifies your PATH, which only takes effect in new
sessions.
Open Terminal and run:
curl -LsSf https://astral.sh/uv/install.sh | shThis installer will:
uv to your user directoryuv to your shell's PATH automaticallyVerify the installation as follows:
uv --versionYou should see output like uv 0.x.x or similar.
If uv is not found, open a new terminal window and try
again. The installer modifies your shell configuration, which only takes
effect in new terminal sessions.
Open your Linux or WSL terminal and run:
curl -LsSf https://astral.sh/uv/install.sh | shThis installer will:
uv to your user directoryuv to your shell's PATH automaticallyVerify the installation as follows:
uv --versionYou should see output like uv 0.x.x or similar.
If uv is not found, open a new terminal window and try
again. The installer modifies your shell configuration, which only takes
effect in new terminal sessions.
Git is required to clone and manage your project repository. Choose the instructions for your operating system:
Download the Git installer from https://git-scm.com/download/win and run it. Accept all default settings during installation.
After installation, open a new PowerShell window and verify:
git --versionYou should see output like git version 2.x.x or
similar.
Git comes pre-installed on most macOS systems. Verify this by opening Terminal and running:
git --versionIf Git is not installed, you'll be prompted to install Xcode Command Line Tools. Follow the prompts to complete the installation.
You should see output like git version 2.x.x or
similar.
Install Git with your package manager. For Ubuntu/Debian, run:
sudo apt update
sudo apt install gitThen verify:
git --versionYou should see output like git version 2.x.x or
similar.
Repeat this for each new project, assignment, or class. Create your project repository from the template at github.com/ricopicone/eai-project-template (Use this template โ Create a new repository), then clone your new repository locally. The repo includes bootstrap scripts that automate the entire setup process.
If you're using Windows Subsystem for Linux (WSL), it's recommended to run the Linux/WSL bootstrap instructions below instead of the Windows ones.
From PowerShell, navigate to where you want to store course files and run:
git clone YOUR_REPO_URL
cd YOUR_REPO_NAMENow run the bootstrap script:
powershell -ExecutionPolicy Bypass -File .\scripts\bootstrap-windows.ps1From your terminal, navigate to where you want to store course files and run:
git clone YOUR_REPO_URL
cd YOUR_REPO_NAMENow run the bootstrap script:
bash scripts/bootstrap-macos.shFrom your Linux or WSL terminal, navigate to where you want to store course files and run:
git clone YOUR_REPO_URL
cd YOUR_REPO_NAMENow run the bootstrap script:
bash scripts/bootstrap-linux.shIf you're using WSL, make sure you run this inside the WSL terminal (not PowerShell).
The bootstrap script will:
uv is installed (fails with instructions if not)uv.venvuv.lock)Once the script completes, open the project in VS Code:
The bootstrap script automatically creates VS Code workspace settings that point to the virtual environment. When you open the repository in VS Code (using code . as shown above), it should automatically detect and use the correct Python interpreter.
If VS Code doesn't automatically select the interpreter, you can set it manually:
Ctrl+Shift+P (Windows) or Cmd+Shift+P (macOS).venv:
\.venv\Scripts\python.exe./.venv/bin/pythonOpen a new terminal within VS Code (Terminal โ New Terminal). You should see your virtual environment activated automatically (indicated by (.venv) in the prompt). Test the Python installation:
python --version # Should show Python 3.13.x
python -c "import torch; print(torch.__version__)" # Should print PyTorch versionFor a more comprehensive PyTorch verification, run the included test script:
python scripts/test-pytorch.pyThis script tests PyTorch functionality, tensor operations, CUDA availability, and autograd. All tests should pass with checkmarks.
Once setup is verified, try running the hello world example to confirm everything works:
python src/hello.pyYou should see output displaying your PyTorch version and confirmation that your environment is ready.
This is your starting point! You can now:
src/hello.py to experiment with Python and PyTorchsrc/ for your projectspyproject.toml to add additional dependencies as neededYour project repository contains several key files that define the Python environment:
pyproject.toml โ Declares project metadata and dependenciesuv.lock โ Locks exact versions of all packages for reproducibility (committed to git).python-version โ Specifies the Python version (optional, used by uv).venv/ โ The virtual environment directory (NOT committed to git, created locally)The workflow ensures that all students have identical package versions, eliminating "works on my machine" issues.
uv: command not found after installation
uv is in your PATH (consult the uv documentation for advanced PATH troubleshooting)VS Code doesn't show the virtual environment interpreter
Git Bash terminal isn't available on Windows
Import errors when running Python code
(.venv) in the prompt)uv sync to ensure all dependencies are installedBootstrap script fails with "Python 3.13 not found"
uvuv python install 3.13 then retry the bootstrap scriptPackages are missing or have wrong versions
uv sync to synchronize your environment with the lockfile.venv/ and re-running the bootstrap script.venv\\Scripts\\Activate.ps1 cannot be loaded because running scripts is disabled on this system
This appears in PowerShell when VS Code auto-activates the virtual environment after you run Ctrl+Shift+P โ "Python: Select Interpreter".
Open a Windows PowerShell terminal
Run
Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy RemoteSigned -ForceClose and open a new PowerShell terminal. You should see (eai-project) in the terminal prompt indicating the virtual environment is active.