🧪 New tutorials are being published — build from robot arms to sensors step by step
Skip to content

Environment Setup (macOS) ​

The black leader arm uses a 5V6A power adapter

The white follower arm uses a 12V5A power adapter

Grant Permissions ​

Image 1

Install Miniconda ​

https://www.anaconda.com/download

Change the pip Source ​

Shell
pip config set global.index-url https://mirrors.aliyun.com/pypi/simple

Change the conda Source ​

Shell
# Clear the existing .condarc configuration (optional, to avoid conflicts)
echo "" > ~/.condarc

# Write the Tsinghua mirror configuration
cat << EOF > ~/.condarc
channels:
  - defaults
show_channel_urls: true
default_channels:
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/msys2
custom_channels:
  conda-forge: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
  msys2: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
  bioconda: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
  menpo: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
  pytorch: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
  pytorch-lts: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
  simpleitk: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
EOF

# Clear the cache to apply the configuration
conda clean -i

Create a Virtual Environment ​

Shell
conda create -y -n lerobot python=3.12

Enter the Virtual Environment ​

Shell
conda activate lerobot

Install ffmpeg ​

Shell
conda install *ffmpeg*=7.1.1 *-c* conda-forge -y

Verify the installation was successful

Shell
ffmpeg

Image 2

Download LeRobot ​

  • Download the official LeRobot code repository
Shell
git clone https://github.com/huggingface/lerobot.git

Install the Code Repository ​

Shell
# cd lerobot-main
cd lerobot
pip install -e ".[feetech]"

Image 3

Image 4

Verify Successful Installation ​

Shell
lerobot-info

python

import lerobot
import torch
torch.cuda.is_available()
import scservo_sdk

Image 5

Image 6