Python for AIPython for AI
Getting Started

Install on Windows

Installing Python on Windows 10/11

Download Python

  1. Go to python.org/downloads
  2. The site will detect you're on Windows and show the latest version
  3. Click the download button to get the installer
  4. Save it to your Downloads folder
Always get Python from the official website to ensure it's secure and up-to-date.

Install Python

This is the most important part - pay close attention to step 2!

  1. Find and run the downloaded installer
  2. Important: Check ✓ "Add python.exe to PATH" at the bottom
If you miss the "Add to PATH" checkbox, Python won't work from Terminal. This is the #1 installation mistake.
  1. Click "Install Now" (not "Customize installation" unless you know what you're doing)
  2. If Windows asks "Do you want to allow this app to make changes?", click "Yes"
  3. Wait for installation (usually takes 1-2 minutes)
  4. Click "Close" when you see "Setup was successful"

Verify installation

Let's make sure Python installed correctly:

  1. Open Terminal:
    • Press Windows + R
    • Type wt and press Enter
    • Or search "Terminal" in Start menu
Windows Terminal is the modern app that can run Command Prompt (cmd), PowerShell, or other shells. It's the recommended way to use Python on Windows.
  1. Type this command:
bash
python --version
  1. You should see the Python version you just installed

On Windows, you can usually use python (not python3 like on Mac/Linux).

Test Python

Let's run Python for the first time:

  1. In Terminal, type:
bash
python
  1. You'll see something like:
text
Python 3.13.5 (tags/v3.13.5:0fa1754, Jul 29 2025, 12:03:01) [MSC v.1935 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>
  1. The >>> means Python is running! Try:
bash
print("Hello from Python!")
  1. Press Enter to see:
Hello from Python!
  1. To exit Python:
    • Type exit() and press Enter
    • Or press Ctrl + Z then Enter

Troubleshooting

Continue to VS Code introduction
Install and configure Visual Studio Code