[HINT]: use a compute node for this otherwise you'll be waiting a while
- Follow instructions to get mujoco binaries
- Load anaconda module
module load anaconda3/3.7
- Create anaconda environment.
conda create -n <env-name> python=3.7 anaconda
- Activate the environment
source activate <env-name>
- Download osmesa using anaconda
conda install -c menpo osmesa
- Download mujoco-py using pip.
pip install mujoco-py
- Compile mujoco_py, which occurs the first time it is imported. It will fail unless you include the path to anaconda's osmesa.
C_INCLUDE_PATH=:$HOME/.conda/envs/<env-name>/include python -c "import mujoco_py"