The installation of MARLlib has two parts: common installation and external environment installation. We’ve tested the installation on Python 3.8 with Ubuntu 18.04 and Ubuntu 20.04.

MARLlib Installation#

We strongly recommend using conda to manage your dependencies and avoid version conflicts. Here we show the example of building python 3.8 based conda environment.

conda create -n marllib python=3.8
conda activate marllib
git clone
cd MARLlib
pip install --upgrade pip
pip install -r requirements.txt

# we recommend the gym version between 0.20.0~0.22.0.
pip install gym>=0.20.0,<0.22.0

# add patch files to MARLlib
python patch/ -y

External Environments Requirements#

External environments are not auto-integrated (except MPE). However, you can install them by following.