-
Notifications
You must be signed in to change notification settings - Fork 1
/
install_tutorial.txt
88 lines (54 loc) · 2.15 KB
/
install_tutorial.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
conda create --name imitation python=3.8
######################################################################
# https://github.com/DLR-RM/rl-baselines3-zoo
pip install rl_zoo3
# inside rl-baselines3-zoo-master
apt-get install swig cmake ffmpeg
pip install -r requirements.txt
######################################################################
# mujuco and mujoco_py install: https://docs.google.com/document/d/1eBvfKoczKmImUgoGMbqypODBXmI1bD91/edit
sudo apt install git # Step 2 : install git
Step 3 : install the mujoco library
# move the .mujoco folder # Step 3 : install the mujoco library
4. include these lines in .bashrc file:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/codysoccerman/.mujoco/mujoco210/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/nvidia
export PATH="$LD_LIBRARY_PATH:$PATH"
export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libGLEW.so
5. source .bashrc
6. Test that the library is installed by going into:
cd ~/.mujoco/mujoco210/bin
./simulate ../model/humanoid.xml
Step 4 Install mujoco-py:
conda create --name mujoco_py python=3.8
conda activate mujoco_py
sudo apt update
sudo apt-get install patchelf
sudo apt-get install python3-dev build-essential libssl-dev libffi-dev libxml2-dev
sudo apt-get install libxslt1-dev zlib1g-dev libglew1.5 libglew-dev python3-pip
git clone https://github.com/openai/mujoco-py
cd mujoco-py
pip install -r requirements.txt
pip install -r requirements.dev.txt
pip install -e . --no-cache
Step 5 reboot your machine
Step 6 run these commands
conda activate mujoco_py
sudo apt install libosmesa6-dev libgl1-mesa-glx libglfw3
sudo ln -s /usr/lib/x86_64-linux-gnu/libGL.so.1 /usr/lib/x86_64-linux-gnu/libGL.so
cd
cd examples
python3 setting_state.py
###############
apt-get install -y libgl1-mesa-dev libgl1-mesa-glx libglew-dev libosmesa6-dev software-properties-common patchelf xvfb
pip install gym==0.21.0
pip install free-mujoco-py
pip install transformers
pip install datasets
pip install imageio-ffmpeg
pip install colabgymrender==1.0.2
pip install xvfbwrapper
pip install imageio==2.4.1
pip install imageio-ffmpeg
pip install huggingface_hub
pip install sk-video