LeRobot Project Runtime Environment Setup Guide
LeRobot Project Runtime Environment Setup Guide
LeRobot Community Repository: https://github.com/huggingface/lerobot
1. Dependency Preparation
1.1 Install NVIDIA Graphics Drivers
Linux Users:
Refer to:
Linux Ubuntu OS install Nvidia Driver GuideWindows Users:
Download from official website: https://www.nvidia.com/en-us/drivers/
1.2 Install NVIDIA CUDA
Linux Users:
Refer to:
Linux Ubuntu OS install Nvidia CUDA GuideWindows Users:
- Verify driver version compatibility via official documentation: https://docs.nvidia.com/cuda/cuda-toolkit-release-notes/index.html
- Download corresponding version: https://developer.nvidia.com/cuda-downloads
1.3 Install Anaconda Python Environment
Linux Users:
Refer to:
Linux Ubuntu OS Install Anaconda GuideWindows Users:
Download from official website: https://www.anaconda.com/download
2. Configure LeRobot Runtime Environment
2.1 Clone LeRobot Repository
Repository: https://github.com/huggingface/lerobot
Method 1: Git Clone
git clone https://github.com/huggingface/lerobot.gitMethod 2: Download ZIP Archive
2.2 Create Python Virtual Environment
- Create conda environment:
- Activate environment:
- Install dependencies:
conda create -y -n lerobot python=3.10conda activate lerobotpip install --no-binary=av -e ".[feetech]"Common Error
error: subprocess-exited-with-errorSolution
Install compilation dependencies:
sudo apt-get install -y ffmpeg libavformat-dev libavcodec-dev libavdevice-dev libavutil-dev libavfilter-dev libswscale-dev libswresample-devRetry installation:
pip install --no-binary=av -e ".[feetech]"2.3 Environment Verification
Test port detection script:
# It's okay if drivers are not connected; just test if it can run.
python lerobot/scripts/find_motors_bus_port.pyAccept result:
← Previous
LeRobot DocsOn this page
- LeRobot Project Runtime Environment Setup Guide
- 1. Dependency Preparation
- 1.1 Install NVIDIA Graphics Drivers
- 1.2 Install NVIDIA CUDA
- 1.3 Install Anaconda Python Environment
- 2. Configure LeRobot Runtime Environment
- 2.1 Clone LeRobot Repository
- 2.2 Create Python Virtual Environment
- 2.3 Environment Verification