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
Why Use uv? (Recommended)
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: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: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:Virtual Environments (Recommended)
It’s recommended to install Swarms in a virtual environment to avoid conflicts with other packages:- venv
- conda
- poetry
Platform-Specific Notes
macOS
macOS
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.
Windows
Windows
On Windows, you might need to install Microsoft C++ Build Tools:
- Download from Microsoft C++ Build Tools
- Install “Desktop development with C++” workload
python instead of python3 in commands.Linux
Linux
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
Permission denied errors
Permission denied errors
If you encounter permission errors, try:Better solution: Use a virtual environment to avoid permission issues.
SSL certificate errors
SSL certificate errors
If you encounter SSL errors:
Package conflicts
Package conflicts
If you have dependency conflicts:
- Create a fresh virtual environment
- Install Swarms first before other packages
- Use
uvfor better dependency resolution
ImportError after installation
ImportError after installation
If you can install but can’t import:
- Check you’re using the correct Python interpreter
- Verify the virtual environment is activated
- 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!