forked from gabrieletiboni/aml22-rl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.sh
32 lines (23 loc) · 928 Bytes
/
setup.sh
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
#!/bin/bash
echo "This script sets up the environment for the Azure virtual machines."
echo "1. Installing requirements..."
sudo apt-get install -y \
libgl1-mesa-dev \
libgl1-mesa-glx \
libglew-dev \
libosmesa6-dev \
software-properties-common \
patchelf
echo "2. Creating virtualenv..."
python -m venv .venv
echo "export MUJOCO_PY_MUJOCO_PATH=/home/azureuser/localfiles/mujoco210" >> .venv/bin/activate
echo "export LD_LIBRARY_PATH=\$LD_LIBRARY_PATH:/home/azureuser/localfiles/mujoco210/bin" >> .venv/bin/activate
echo "export LD_LIBRARY_PATH=\$LD_LIBRARY_PATH:/usr/lib/nvidia" >> .venv/bin/activate
source .venv/bin/activate
echo "2. Installing Python requirements..."
pip install mujoco-py
pip install -r aml22-rl/requirements.txt
echo "3. Downloading MuJoCo Python bindings..."
wget https://mujoco.org/download/mujoco210-linux-x86_64.tar.gz
tar xf mujoco210-linux-x86_64.tar.gz
echo "Done!"