Skip to content

Latest commit

 

History

History
51 lines (40 loc) · 1.43 KB

install.md

File metadata and controls

51 lines (40 loc) · 1.43 KB

Installation

(Tested on Ubuntu 20.04)

Overview

  1. Clone the repo.
  2. Set up a Conda env.
  3. Install python modules (including bundled dependencies).

Clone repo with git submodules

git clone --recursive [email protected]:indylab/sp-psro.git
cd grl

If you've already cloned this repo but not the submodules, you can clone them with:

git submodule update --init --recursive

Set up Conda environment

After installing Anaconda, enter the repo directory and create the new environment:

conda env create -f environment.yml
conda activate sp_psro

Install Python modules

1. DeepMind OpenSpiel (included dependency)

DeepMind's OpenSpiel is used for poker game logic as well as tabular game utilities. We include a slightly modified fork as a dependency.

# Starting from the repo root
cd dependencies/open_spiel
./install.sh
OPEN_SPIEL_BUILD_WITH_ACPC=OFF OPEN_SPIEL_BUILD_WITH_HANABI=OFF pip install -e . # This will start a compilation process. May take a few minutes.
cd ../..

2. The GRL Package (main package).

# Starting from the repo root
pip install -e .

Next Steps