Lesson 1 of 20

Environment Setup

Installing Python

2 min read

Before building AI agents, you need Python installed on your system. We recommend Python 3.11 or newer for the best compatibility with modern AI libraries.

Checking Your Python Version

Open your terminal and run:

python --version
# or
python3 --version

You should see something like Python 3.11.5 or higher.

Installing Python

Windows

  1. Download the installer from python.org
  2. Run the installer
  3. Important: Check "Add Python to PATH" during installation

macOS

# Using Homebrew (recommended)
brew install python@3.11

Linux (Ubuntu/Debian)

sudo apt update
sudo apt install python3.11 python3.11-venv

Verifying Installation

After installation, verify everything works:

python3 --version
# Python 3.11.x

python3 -c "print('Hello, AI World!')"
# Hello, AI World!

Why Python 3.11+?

  • Performance: 10-60% faster than Python 3.10
  • Better errors: More helpful error messages
  • AI compatibility: Required by many modern AI libraries

Next, we'll set up virtual environments to isolate your projects. :::

Quiz

Module 1: Environment Setup

Take Quiz