openai / gym

A toolkit for developing and comparing reinforcement learning algorithms.
https://www.gymlibrary.dev
Other
34.76k stars 8.61k forks source link

Running Mujoco Environments #3196

Open ssvision opened 1 year ago

ssvision commented 1 year ago

I am trying to use the Gym Mujoco Environments as per documentation. This is the code that I have copy/pasted from the official Gym Documentation but I am getting the following error

Screenshot from 2023-03-03 16-19-54 Screenshot from 2023-03-03 16-20-41

The last line of the error reads as :- To use MuJoCo, you need to either populate ~/.mujoco/mjkey.txt and ~/.mujoco/mjpro131, or set the MUJOCO_PY_MJKEY_PATH and MUJOCO_PY_MJPRO_PATH environment variables appropriately. Follow the instructions on https://github.com/openai/mujoco-py for where to obtain these.

How to solve the above problem ?

pseudo-rnd-thoughts commented 1 year ago

Have you installed gym[mujoco]? Could you run import mujoco

Pythoniasm commented 1 year ago

I had only luck with https://github.com/vwxyzjn/free-mujoco-py so far :-/