运行mujoco-py例程出现错误:distutils.errors.CompileError: command '/usr/bin/gcc' failed with exit code - 知乎
distutils.errors.LinkError: command 'gcc' failed with exit status 1
方法:
sudo apt install libosmesa6-dev libgl1-mesa-glx libglfw3
```
If you installed above libraries and you still see an error that -lGL cannot be found, most likely you need to create the symbolic link directly:
```
sudo ln -s /usr/lib/x86_64-linux-gnu/libGL.so.1 /usr/lib/x86_64-linux-gnu/libGL.so
----------------------
FileNotFoundError: [Errno 2] No such file or directory: 'patchelf': 'patchelf'
方法:
sudo apt-get -y install patchelf
mujoco-py例程错误解决方法

博客主要讲述运行mujoco-py例程时出现的错误及解决方法。如遇到distutils.errors.CompileError、distutils.errors.LinkError,可通过sudo apt install安装相关库,若仍提示找不到-lGL,需创建符号链接;遇到FileNotFoundError,后续应会给出对应解决办法。
5982

被折叠的 条评论
为什么被折叠?



