-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.txt
49 lines (40 loc) · 1.47 KB
/
install.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
1.install mujoco2.1.0
# Download binary file of mujoco2.1.0
cd ~
mkdir .mujoco
cd .mujoco
wget https://github.com/deepmind/mujoco/releases/download/2.1.0/mujoco210-linux-x86_64.tar.gz
mv mujoco210-linux-x86_64.tar.gz mujoco210
tar -zxvf mujoco210
# Put mujoco key in .mujoco folder
https://www.roboti.us/file/mjkey.txt
# Add Environment variables to ~/.bashrc
sudo gedit ~/.bashrc
# Add the following 4 commands at the end of .bashrc
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/.mujoco/mujoco210/bin
export MUJOCO_KEY_PATH=~/.mujoco/mjkey.txt
# Source ~/.bashrc to commit the changes
source ~/.bashrc
2.create a conda environment for mjrl and install mjrl
# Go to mjrl folder
cd KOROL/mjrl
conda update conda
conda env create -f setup/env.yml
conda activate mjrl-env
pip install -e .
# Now install mujoco-py
pip install mujoco-py==2.1.2.14
# We need to check whether mujoco-py is installed successfully. Run python in current conda environment (mjrl-env) and import mujoco_py.
# If mujoco_py is installed successfully, it should be (compiled and) imported without errors.
python
import mujoco_py
# If mujoco_py is imported for the first time, it will be compiled automatically.
# If a Cython related error occurs, try changing the version of gcc and Cython
pip install "cython<3"
# maybe also try this
# conda install -c conda-forge gcc=12.1.0
# You are almost done!!!
3.install mj_envs
get into the mj_envs
pip install -e .
4.Run Korol code and install missing packages with pip as you need