google-deepmind / mujoco

Multi-Joint dynamics with Contact. A general purpose physics simulator.
https://mujoco.org
Apache License 2.0
7.8k stars 776 forks source link

Help with mujoco-py installation #219

Closed JodieKoenig closed 2 years ago

JodieKoenig commented 2 years ago

When I try : pip3 install -U 'mujoco-py<1.50.2,>=1.50.1' The following error is coming up...

Using legacy 'setup.py install' for mujoco-py, since package 'wheel' is not installed. Installing collected packages: mujoco-py Running setup.py install for mujoco-py ... error error: subprocess-exited-with-error

Later followed by legacy-install-failure

Any suggestions or help would be greatly appreciated Thanks, Jodie

saran-t commented 2 years ago

Hi Jodie,

mujoco-py isn't a package that we own or support, and unfortunately the error message that you posted above doesn't give us enough detail to be able to help you troubleshoot the issue.

Are you trying to install mujoco-py because you need it for some other package that depends on it? Or are you looking to start using MuJoCo via Python? If it's the latter, we recommend that you use our new official Python bindings instead.

JodieKoenig commented 2 years ago

Thank you for your prompt response. Yes, I am trying to use MuJoCo via Python to train an agent on Open AI gym environments. I will have a look at the official Python bindings

saran-t commented 2 years ago

FYI: there seems to be an active ongoing effort to migrate gym away from mujoco-py and to our new mujoco bindings package instead. https://github.com/openai/gym/pull/2595

JodieKoenig commented 2 years ago

Thanks for letting me know @saran-t!

saran-t commented 2 years ago

I'm going to close this issue for now, but looking back at your original message I think you just need to pip install wheel to make progress. If you want to go via that route then you should follow the instructions given in the gym and mujoco-py repos to install an older version of MuJoCo.