mujoco py install error - fatal error: GL/osmesa.h: No such file or directory
eastskykang opened this issue ยท 13 comments
during mujoco-py installation,
/tmp/pip-install-rsxccpmh/mujoco-py/mujoco_py/gl/osmesashim.c:1:23: fatal error: GL/osmesa.h: No such file or directory
compilation terminated.
error: command 'gcc' failed with exit status 1
might appear.
It can be resolved with
$ sudo apt-get install libosmesa6-dev
Need to update README or wiki.
The fix can be found here: https://github.com/openai/mujoco-py#ubuntu-installtion-troubleshooting
sudo apt install libosmesa6-dev libgl1-mesa-glx libglfw3
The following packages have unmet dependencies:
libosmesa6-dev : Depends: libosmesa6 (= 20.0.8-0ubuntu118.04.1ppa1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Do you know how to solve this problem? thanks!
@SHITIANYU-hue You probably have dependency conflicts on your system.
Have you tried installing libmesa6
directly?
Yes, I downloaded it here: https://launchpad.net/~ubuntu-x-swat/+archive/ubuntu/updates/+build/19465714.
However, I still have this problem๐ญ
Search and install a specific version pkg.
Ref: https://linoxide.com/install-specific-version-package-apt-get/
no root access, how to resolve this issue?
How can I install without sudo?
thanks a lot!!!!!!!!! @eastskykang
no root access, how to resolve this issue?
no root access, how to resolve this issue?
This worked for me : openai/mujoco-py#627 (comment)
no root access, how to resolve this issue?
This works in my conda environment
conda install -c conda-forge mesalib glew glfw