Skip to main content

Quick Installation

LeRobot can be installed directly from PyPI:
Verify your installation:
LeRobot requires Python 3.12 or higher. Make sure you have a compatible Python version installed.

System Requirements

Python Version

  • Required: Python >= 3.12
  • Supported: Python 3.12, 3.13

Operating Systems

  • Linux: Full support (recommended for production)
  • macOS: Full support with Apple Silicon (MPS) acceleration
  • Windows: Partial support (some features may have limitations)

Hardware

  • GPU: CUDA-capable GPU recommended (NVIDIA)
  • RAM: Minimum 16GB, 32GB+ recommended for large datasets
  • Storage: Varies by dataset size (streaming mode available for large datasets)

Installation Options

Basic Installation

For general use without robot hardware:
This installs core dependencies:
  • PyTorch (version 2.2.1 or higher, below 2.11.0)
  • Hugging Face libraries (datasets, diffusers, huggingface-hub, accelerate)
  • Computer vision libraries (opencv-python-headless, torchvision, av)
  • Training tools (wandb, gymnasium, rerun-sdk)

Installation with Specific Hardware

LeRobot provides optional dependencies for specific robot hardware:

Installation for Specific Robots

Installation for Specific Policies

Install dependencies for specific policy implementations:

Installation for Simulation Environments

Full Installation

For developers who want all features:
The [all] installation includes most optional dependencies and can take significant time and disk space. Some packages like groot and unitree_g1 require manual installation steps and are excluded.

Development Installation

For contributors and developers:
Development dependencies include:
  • pre-commit: Code quality checks
  • debugpy: Python debugging
  • pytest: Testing framework
  • mypy: Type checking

Verifying Installation

Check Version

List Available Resources

Test GPU Availability

Command-Line Tools

After installation, LeRobot provides several CLI commands:

Troubleshooting

CUDA Issues

If PyTorch doesn’t detect your GPU:

Import Errors

If you get import errors for optional dependencies:

Version Conflicts

If you encounter dependency conflicts:

Apple Silicon (M1/M2/M3) Notes

LeRobot works great on Apple Silicon with MPS acceleration. Make sure you have the latest macOS updates for best performance.

Linux-Specific: RealSense Installation

For Intel RealSense cameras on Linux:

Environment Setup

1

Create Virtual Environment

2

Activate Environment

3

Install LeRobot

4

Verify Installation

Using Conda

Next Steps

Quick Start Guide

Run your first robot learning example

Hardware Setup

Connect and configure your robot

Dataset Guide

Learn to work with robotic datasets

Training Policies

Train your first robot policy

Getting Help

If you encounter issues:
  1. Check the GitHub Issues
  2. Join the Discord community
  3. Search the Hugging Face forums
For hardware-specific issues, consult the Robots documentation for detailed setup guides.