Installing Legion

This guide will walk you through installing Legion and setting up your development environment.

Requirements

  • Python 3.8 or higher
  • pip (Python package installer)
  • Virtual environment (recommended)

Installation Steps

  1. Create a virtual environment (recommended):
python -m venv venv source venv/bin/activate # On Windows, use: venv\Scripts\activate
  1. Install Legion using pip:
pip install legion-ai

You can find the package on PyPI at https://pypi.org/project/legion-ai/

  1. Verify the installation:
python -c "import legion; print(legion.__version__)"

Next Steps

Now that you have Legion installed, check out the Quick Start guide to create your first agent.