Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mujoco_py looking for the wrong mujoco installation #807

Open
NoahRCarver opened this issue Oct 23, 2024 · 1 comment
Open

mujoco_py looking for the wrong mujoco installation #807

NoahRCarver opened this issue Oct 23, 2024 · 1 comment

Comments

@NoahRCarver
Copy link

I have two installations of mujoco for two different projects
2.3.1 is installed in ~/ml4kp_ws/mujoco-2.3.1/bin
2.1.0 is installed in ~/.mujoco/mujoco210/bin and is the one i want my to be found at the moment.

image
@tlaurie99
Copy link

@NoahRCarver
I had this issue and it was a matter of opening the ~/.bashrc file and putting in:

export MUJOCO_PY_MUJOCO_PATH="$HOME/.mujoco/mujoco210"
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$MUJOCO_PY_MUJOCO_PATH/bin

then running in a terminal:

source ~/.bashrc

One part I got hung up on is exiting the venv, activating a new one, and then trying:

python3
import mujoco_py

so that the env. variables get refreshed. Hope it helps!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants