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.87k stars 814 forks source link

share success way to install mujoco-py on linux #190

Open Lu-Yi-Hsun opened 6 years ago

Lu-Yi-Hsun commented 6 years ago

my computer's os is linux manjaro if i install bypip3 install -U 'mujoco-py<1.50.2,>=1.50.1'it not work

work way git clone https://github.com/openai/mujoco-py cd mujoco-py sudo pip install -e . --no-cache

tegg89 commented 6 years ago

Thanks for sharing the way. In my case, just pip ~ without sudo works.

DanielTakeshi commented 6 years ago

@Lu-Yi-Hsun @tegg89

Did you confirm that you can actually import it in python? I'm getting the errors here: https://github.com/openai/mujoco-py/issues/204

Rowing0914 commented 5 years ago

my computer's os is linux manjaro if i install bypip3 install -U 'mujoco-py<1.50.2,>=1.50.1'it not work

work way git clone https://github.com/openai/mujoco-py cd mujoco-py sudo pip install -e . --no-cache

Thank you for sharing!! It worked on my machine!

Env

me@me:~/Desktop$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 16.04.6 LTS
Release:    16.04
Codename:   xenial

And also, it is working on OpenAI Gym env as follows

import gym
env = gym.make('FetchReach-v1')

env.reset()
for _ in range(1000):
    env.render()
    env.step(env.action_space.sample()) # take a random action
env.close()