Skip to main content

Installation Options

Swarms can be installed in multiple ways depending on your preferences and development environment. Choose the method that best fits your workflow.

pip

Standard Python package installation

uv

Fast Rust-based installer (Recommended)

poetry

Modern dependency management

From Source

Development and contribution

Prerequisites

Before installing Swarms, ensure you have:
  • Python 3.10 or higher installed on your system
  • pip package manager (usually comes with Python)
  • An active internet connection
You can check your Python version by running python --version or python3 --version in your terminal.

Installation Methods

uv is a fast Python package installer and resolver, written in Rust. It offers significant performance improvements over traditional pip:

10-100x Faster

Dramatically faster installation times compared to pip

Better Dependency Resolution

More reliable dependency resolution and conflict detection

Drop-in Replacement

Works as a direct replacement for pip commands

Verify Installation

After installation, verify that Swarms is correctly installed:
You can also run this as a one-liner:

Installing Specific Versions

If you need a specific version of Swarms:

Development Installation

If you’re planning to contribute to Swarms or need the latest development features:
1

Clone the repository

2

Install in editable mode

3

Install development dependencies

4

Verify the installation

Installing in editable mode (-e flag) allows you to modify the source code and see changes immediately without reinstalling.

Optional Dependencies

Swarms has optional dependencies for specific features:
It’s recommended to install Swarms in a virtual environment to avoid conflicts with other packages:

Platform-Specific Notes

On macOS, you might need to install command-line tools:
If you’re using Apple Silicon (M1/M2), ensure you’re using a compatible Python version.
On Windows, you might need to install Microsoft C++ Build Tools:
  1. Download from Microsoft C++ Build Tools
  2. Install “Desktop development with C++” workload
Also, use python instead of python3 in commands.
On Linux, you might need to install additional system dependencies:

Upgrading Swarms

To upgrade to the latest version:

Uninstalling Swarms

If you need to uninstall Swarms:

Troubleshooting

If you encounter permission errors, try:
Better solution: Use a virtual environment to avoid permission issues.
If you encounter SSL errors:
If you have dependency conflicts:
  1. Create a fresh virtual environment
  2. Install Swarms first before other packages
  3. Use uv for better dependency resolution
If you can install but can’t import:
  1. Check you’re using the correct Python interpreter
  2. Verify the virtual environment is activated
  3. Try reinstalling: pip uninstall swarms && pip install swarms

Next Steps

Now that you’ve installed Swarms, proceed to:

Environment Setup

Configure your API keys and workspace

Quickstart Guide

Create your first agent in minutes
Need help with installation? Join our Discord community for support!