mujoco-py
mujoco-py copied to clipboard
about import mujoco_py
import mujoco_py Traceback (most recent call last): File "
", line 1, in File "/usr/local/lib/python3.8/dist-packages/mujoco_py/init.py", line 2, in from mujoco_py.builder import cymj, ignore_mujoco_warnings, functions, MujocoException File "/usr/local/lib/python3.8/dist-packages/mujoco_py/builder.py", line 504, in cymj = load_cython_ext(mujoco_path) File "/usr/local/lib/python3.8/dist-packages/mujoco_py/builder.py", line 74, in load_cython_ext _ensure_set_env_var("LD_LIBRARY_PATH", lib_path) File "/usr/local/lib/python3.8/dist-packages/mujoco_py/builder.py", line 120, in _ensure_set_env_var raise Exception("\nMissing path to your environment variable. \n" Exception: Missing path to your environment variable. Current values LD_LIBRARY_PATH=/usr/local/lib/python3.8/dist-packages/torch/lib:/usr/local/lib/python3.8/dist-packages/torch_tensorrt/lib:/usr/local/cuda/compat/lib:/usr/local/nvidia/lib:/usr/local/nvidia/lib64 Please add following line to .bashrc: export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/root/.mujoco/mujoco210/bin
I have the same problem I added the LD_LIBRARY_PATH, but it still does not work did you find any solution?
import mujoco_py
Traceback (most recent call last):
File "
I meet the problem too. The solution in this issue https://github.com/openai/mujoco-py/issues/267 works for me.
use this commands in terminal
echo 'export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/user/.mujoco/mujoco210/bin' >> ~/.bashrc
next
source ~/.bashrc