openai / mujoco-py

MuJoCo is a physics engine for detailed, efficient rigid body simulations with contacts. mujoco-py allows using MuJoCo from Python 3.
Other
2.81k stars 810 forks source link

Cannot find -lGL error #727

Open aaravnavani opened 2 years ago

aaravnavani commented 2 years ago

Describe the bug I am trying to install mujoco-py 2.0.0 but when I run the command pip3 install -U 'mujoco-py<2.1,>=2.0', I get the following error: /home/anavani/anaconda3/envs/dmcgb/compiler_compat/ld: cannot find -lGL

I have already tried following the README and other similar issues by running sudo apt install libosmesa6-dev libgl1-mesa-glx libglfw3 (which installs but ends up giving the same error when I run the pip command) and sudo ln -s /usr/lib/x86_64-linux-gnu/libGL.so.1 /usr/lib/x86_64-linux-gnu/libGL.so which gives ln: failed to create symbolic link '/usr/lib/x86_64-linux-gnu/libGL.so': File exists

Expected behavior Mujoco-py 2.0.0 should install

Desktop (please complete the following information):

Environment

Any help would be appreciated.