Quick Installation
LeRobot can be installed directly from PyPI: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
- For Training
- For Inference
- For Development
- 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:- 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:Development Installation
For contributors and developers:pre-commit: Code quality checksdebugpy: Python debuggingpytest: Testing frameworkmypy: 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
Linux-Specific: RealSense Installation
For Intel RealSense cameras on Linux:Environment Setup
Using Virtual Environments (Recommended)
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:- Check the GitHub Issues
- Join the Discord community
- Search the Hugging Face forums
For hardware-specific issues, consult the Robots documentation for detailed setup guides.