Skip to content

Instantly share code, notes, and snippets.

@buntyke
Last active April 18, 2018 07:11
Show Gist options
  • Save buntyke/0427ad0a1f74ea55511fea37122e01a5 to your computer and use it in GitHub Desktop.
Save buntyke/0427ad0a1f74ea55511fea37122e01a5 to your computer and use it in GitHub Desktop.
Instructions to setup environment for Open AI Gym and HER experiments

Instructions for Env Setup

VMWare Setup

  • Download Trial Version for Parallels Desktop
  • Create an account on Parallels
  • Install Ubuntu in Parallels
  • Install parallels tools and restart ubuntu
  • Install chrome for easy access

Miniconda Install

  • Download bash executable for Miniconda
  • Install Miniconda
    $ cd Downloads
    $ chmod +x Miniconda.sh
    $ ./Miniconda.sh
    
  • Install dependencies for gym:
    $ sudo apt install cmake zlib1g-dev libjpeg-dev xvfb libav-tools xorg-dev libboost-all-dev libsdl2-dev swig
    
  • Download and setup Mujoco:
    • Obtain license for Mujoco from website.
    • Download mujoco and save in home folder under ~/.mujoco folder
    • Copy mjkey.txt to ~/.mujoco folder
  • Install mujoco-py, gym, baselines:
    $ sudo apt install libosmesa6-dev
    $ conda install -c anaconda patchelf
    $ pip install mujoco-py
    $ git clone https://github.com/openai/baselines.git
    $ cd baselines
    $ pip install -e .
    
  • Download HER starter code:
    $ git clone https://github.com/buntyke/her.git
    $ cd her
    $ python dqn_her.py -h
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment