mujoco-py icon indicating copy to clipboard operation
mujoco-py copied to clipboard

mujoco_py looking for the wrong mujoco installation

Open NoahRCarver opened this issue 1 year ago • 2 comments

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

NoahRCarver avatar Oct 23 '24 17:10 NoahRCarver

@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!

tlaurie99 avatar Oct 31 '24 17:10 tlaurie99

I'm facing the same inssue and didn't work, I'm guessing is my python version which version are you using?

carloskiyoto avatar Jan 24 '25 14:01 carloskiyoto