Installation Guides

The installation of MALib is very easy. We’ve tested MALib on Python 3.6 and 3.7. This guide is based on ubuntu 18.04 or above.

Conda Environment

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

conda create -n malib python==3.7 -y
conda activate malib

# install dependencies
cmake --version # must be >=3.12
clang++ --version   # must be >=7.0.0
sudo apt-get install graphviz cmake clang

# install malib
pip install -e .

External Environments

External environments are integrated in MALib, such as StarCraftII and Mujoco. You can intall them by following the official guides on their project homepage.

Development requirements

For users who wanna contribute to our repository, run pip install -e .[dev] to complete the development dependencies, also refer the contributing guide.