Skip to content

踩坑GitHub huggingface/lerobot14 天前

Windows原生运行LeRobot LIBERO仿真报错及四步绕过方案 ​

本文由 AI 根据公开内容整理,可能有误,请以原文为准:LIBERO doesn't work on native Windows: 4 small blockers, with a tested fix (happy to send a PR)(GitHub huggingface/lerobot #4857)

状态:有绕过办法

问题 ​

在Windows 11原生环境运行LeRobot LIBERO时遭遇四个阻断:1. hf-libero依赖egl-probe需CMake编译导致安装失败;2. robosuite 1.4.0缺失mujoco.dll致import崩溃;3. MUJOCO_GL被强制设为egl且在Windows无效;4. 日志硬编码写入/tmp/robosuite.log致路径不存在报错。

环境 ​

LeRobot 0.6.1, Windows 11, Python 3.12.13, PyTorch 2.11.0+cu128, RTX 3060 Laptop GPU, hf-libero 0.1.4, robosuite 1.4.0, mujoco 3.8.1

解决办法 ​

  1. 使用 uv pip install --no-deps hf-libero==0.1.4 robomimic==0.2.0 跳过 egl-probe 等Linux专用依赖的自动构建。
  2. 手动安装运行时必需组件:uv pip install robosuite==1.4.0 mujoco==3.8.1 bddl==1.0.1 easydict einops "hydra-core<1.4" h5py glfw future termcolor gymnasium matplotlib cloudpickle opencv-python thop。
  3. 在代码中 import robosuite 之前,通过环境变量将 MUJOCO_GL 显式设置为 glfw 以覆盖默认的 egl 后端。
  4. 确保当前驱动器根目录存在 \tmp 文件夹,或在导入前修改日志路径配置,解决 /tmp/robosuite.log 写入失败问题。
  5. 验证环境:执行…

讨论原作者:@ahmedsleem109 等,版权归原作者所有。

基于本页技术方向关联的整机参数、核心零部件、实测报告与同赛道选型横评。

外部来源

本页事实对应的公开页面,以原文为准。(点击将离开本站)

  1. GitHub huggingface/lerobot #4857:LIBERO doesn't work on native Windows: 4 small blockers, with a tested fix (happy to send a PR) ↗访问 2026-11-09