My python version is 3.8.5.
I download the MuJoCo version 2.1 binaries for Linux and extract to ~/.mujoco/mujoco210.
I use the following code to test the installation.
Traceback (most recent call last):
File "/home/sunshuo/qml/decision-transformer/gym/test.py", line 8, in <module>
import mujoco_py
File "/home/sunshuo/miniconda3/envs/decision-transformer-gym/lib/python3.8/site-packages/mujoco_py/__init__.py", line 2, in <module>
from mujoco_py.builder import cymj, ignore_mujoco_warnings, functions, MujocoException
File "/home/sunshuo/miniconda3/envs/decision-transformer-gym/lib/python3.8/site-packages/mujoco_py/builder.py", line 504, in <module>
cymj = load_cython_ext(mujoco_path)
File "/home/sunshuo/miniconda3/envs/decision-transformer-gym/lib/python3.8/site-packages/mujoco_py/builder.py", line 76, in load_cython_ext
_ensure_set_env_var("LD_LIBRARY_PATH", get_nvidia_lib_dir())
File "/home/sunshuo/miniconda3/envs/decision-transformer-gym/lib/python3.8/site-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=$LD_LIBRARY_PATH:/home/sunshuo/.mujoco/mujoco210/bin
Please add following line to .bashrc:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/nvidia
But if I add the export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/nvidia, then it shows that I should add $LD_LIBRARY_PATH:/home/sunshuo/.mujoco/mujoco210/bin instead.
My python version is 3.8.5. I download the MuJoCo version 2.1 binaries for Linux and extract to
~/.mujoco/mujoco210
. I use the following code to test the installation.And it shows the exception
But if I add the
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/nvidia
, then it shows that I should add$LD_LIBRARY_PATH:/home/sunshuo/.mujoco/mujoco210/bin
instead.