mujoco-py
mujoco-py copied to clipboard
mujoco_py looking for the wrong mujoco installation
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.
@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!
I'm facing the same inssue and didn't work, I'm guessing is my python version which version are you using?