问题描述
安装mujoco200和mujoco-py时遇到报错
/tmp/pip-install-17okd8wq/mujoco-py_12b8907c86c0458dab4f02eedf9b2ad1/mujoco_py/gl/osmesashim.c:1:10: fatal error: GL/osmesa.h: No such file or directory
1 | #include <GL/osmesa.h>
| ^~~~~~~~~~~~~
compilation terminated.
error: command '/usr/bin/gcc' failed with exit code 1
解决办法
sudo apt-get install libosmesa6-dev