# Installation Note **Repository Path**: martbox/installation-note ## Basic Information - **Project Name**: Installation Note - **Description**: No description available - **Primary Language**: Python - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-03-23 - **Last Updated**: 2025-03-23 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Installation Note #### 介绍 记录各种系统的安装过程,遇到的各种问题,解决的方法 #### 安装教程 ##### 安装基于python 的mujoco 1、参考下文的安装方法 https://zhuanlan.zhihu.com/p/656678983 2、官方参考文档 https://mujoco.readthedocs.io/en/stable/python.html 3、实际安装过程 pip install mujoco 4、快速开始 python -m mujoco.viewer #启动一个空的可视化会话,其中可以通过拖放加载模型。 python -m mujoco.viewer --mjcf=/path/to/some/mjcf.xml #为指定的模型文件启动可视化会话。 5、遇到的问题 > python -m mujoco.viewer libGL error: MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri) libGL error: failed to load driver: swrast /home/mart/miniconda3/lib/python3.9/site-packages/glfw/__init__.py:917: GLFWError: (65543) b'GLX: Failed to create context: BadValue (integer parameter out of range for operation)' warnings.warn(message, GLFWError) ERROR: could not create window 6、解决方法 安装Mujoco用于python,遇到FatalError,以及图形驱动架构 https://www.iotword.com/29879.html - 这里是列表文本关键设置 LD_PRELOAD 环境变量 export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libstdc++.so.6 - 这里是列表文本创建改环境变量,并固定在当前环境中: - 注意=的两侧没有空格 - 注意,文章中的这个部分是错误的: conda env config vars set MUJOCO_GL=egl conda env config vars set LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libstdc++.so.6