Installation
Prerequisites
Both Ubuntu and RHEL8 require Python 3.8 or higher. Let's start with system preparation:
Ubuntu Prerequisites
bash
# Update package list
sudo apt update && sudo apt upgrade -y
# Install required system packages
sudo apt install -y python3 python3-pip python3-venv git curl wget
# Install development tools
sudo apt install -y build-essential python3-dev
RHEL8 Prerequisites
bash
# Enable necessary repositories
sudo dnf install -y epel-release
sudo dnf config-manager --set-enabled powertools
# Install required packages
sudo dnf install -y python3 python3-pip python3-devel git curl wget
# Install development tools
sudo dnf groupinstall -y "Development Tools"
virtual Environment Setup
Creating isolated environments is crucial for Python applications:
Ubuntu & RHEL8 (Common Steps)
bash
# Create project directory
mkdir -p /opt/autogen
cd /opt/autogen
# Create virtual environment
python3 -m venv autogen-env
# Activate virtual environment
source autogen-env/bin/activate
# Upgrade pip
pip install --upgrade pip setuptools wheel
AutoGen Installation Methods
Method 1: PyPI Installation (Recommended)
bash
# Basic installation
pip install pyautogen
# Installation with additional features
pip install "pyautogen[teachable,lmm,graph]"
# For development
pip install "pyautogen[dev]"
``
## Method 2: Source Installation
bash
Clone repository
git clone https://github.com/microsoft/autogen.git cd autogen
Install in development mode
pip install -e .
Install with optional dependencies
pip install -e ".[teachable,lmm,graph]"
# Verification
bash
Test installation
python -c "import autogen; print(autogen.version)"
Run basic test
python -c "from autogen import AssistantAgent, UserProxyAgent; print('AutoGen installed