conda create -n harl2 python=3.9 -y 
# conda install -c conda-forge glew glfw mesalib -y - gpu
conda activate harl2 
pip install -e .
# first run download_mujoco.sh
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:~/.mujoco/mujoco210/bin
export MUJOCO_PY_MUJOCO_PATH=~/.mujoco/mujoco210
# sudo apt update -y && 
sudo apt install -y libosmesa6-dev libgl1-mesa-glx libglfw3 patchelf 
pip install mujoco gym[mujoco]
pip install "mujoco-py>=2.1.2.14" "Jinja2>=3.0.3" "glfw>=2.5.1" "Cython>=0.29.28"
pip install wheel==0.38.0 setuptools==65.5.0 pip==20.0.2 && pip install gym==0.21.0
pip install pyglet==1.5.0 importlib-metadata==4.13.0
pip install wandb
# cuda - depends on cuda version
pip install torch --index-url https://download.pytorch.org/whl/cu121

# add to code or bashrc
# export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:~/.mujoco/mujoco210/bin
# export MUJOCO_PY_MUJOCO_PATH=~/.mujoco/mujoco210
# GPU might need - export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/nvidia

# check if mujoco is installed - try interactive ins from https://github.com/openai/mujoco-py?tab=readme-ov-file#install-and-use-mujoco-py