MPE (moved to MPE2)¶
Warning
The MPE environments are no longer part of PettingZoo. They now live in their own Farama project, MPE2, where they continue to be maintained.
Importing pettingzoo.mpe raises an ImportError pointing here.
Migration Guide¶
Install the new package:
pip install mpe2
Then update your imports. The environment names and versions are unchanged, so in most cases swapping the import is the only edit required:
# Before (PettingZoo <= 1.24)
from pettingzoo.mpe import simple_spread_v3
# After
from mpe2 import simple_spread_v3
env = simple_spread_v3.env(render_mode="human")
MPE2 still implements the PettingZoo AEC and Parallel APIs, so the rest of your code, along with any PettingZoo wrappers and utilities, continues to work.
Environments¶
The environments that used to be documented on this site are now documented at mpe2.farama.org:
MPE2 also adds environments that were never part of PettingZoo, including Simple Formation, Simple Line, and Collect Treasure.
Links¶
Documentation: https://mpe2.farama.org/