1
Install Python and PyTorch
Ensure Python 3.10 or higher and PyTorch 2.2 or higher are installed on your system.
2
Clone the Repository
Run `git clone https://github.com/huggingface/lerobot.git && cd lerobot` to download the source code.
3
Install LeRobot
Install the package in editable mode using `pip install -e .`. It is recommended to use a Conda environment for isolation.
4
Install Hardware Extras
For specific hardware support, install extras like `pip install -e '.[dynamixel]'` or `pip install -e '.[trossen_ai]'`.
5
Train a Policy
Use commands such as `lerobot-train --policy.type act --dataset.repo_id ...` to train imitation or reinforcement learning policies.