Swarms Logo
Installation Guide

Install Swarms

Get started with the Swarms framework in minutes. Choose your preferred installation method and start building multi-agent AI systems.

Documentation

Recommended · uv

Quick start

The fastest way to get Swarms up and running — uv is up to 10x faster than pip.

01Install uv (if not already installed)

install.sh
curl -LsSf https://astral.sh/uv/install.sh | sh

02Install Swarms

shell
uv pip install swarms

03Verify installation

shell
python -c 'import swarms; print(swarms.__version__)'

Choose your method

Installation methods

Choose the installation method that works best for your environment.

Install with pip

Standard Python package installer — works on all platforms.

Basic installation

terminal
pip install swarms

With specific version

terminal
pip install swarms==5.1.0

Upgrade to latest

terminal
pip install --upgrade swarms

Before you begin

Requirements & verification

System requirements

  • Python 3.8 or higher
  • pip (Python package installer)
  • Git (for source installation)
  • Virtual environment (recommended)

Verify installation

Check version:

terminal
python -c 'import swarms; print(swarms.__version__)'

Run a simple test:

terminal
python -c 'from swarms import Agent; print("Swarms installed successfully!")'

What's next

Next steps

Now that you have Swarms installed, here's what you can do next.

Quick Start Guide

Learn the basics and create your first agent in minutes.

View Guide

Examples

Explore practical examples and use cases.

Browse Examples

API Reference

Comprehensive API documentation and reference.

Read Docs

Support

Troubleshooting

Common issues and their solutions.

Permission Errors

If you encounter permission errors, try installing in user space:

terminal
pip install --user swarms

Virtual Environment Issues

Create a fresh virtual environment:

terminal
python -m venv swarms-env && source swarms-env/bin/activate && pip install swarms

Dependency Conflicts

Use uv for better dependency resolution:

terminal
uv pip install swarms --resolution=highest

Still having issues?

Get help from our community on Discord or report an issue on GitHub.