PyBoy is a Game Boy and Game Boy Color emulator written in Python, version 2.7.0. It supports full emulation including CPU, memory, graphics, and sound, with a Python API for scripting and AI research. Release cadence: irregular, ~1-2 major versions per year.
pip install pyboyVerified import paths — ran on the pinned version, not inferred.
Initialize PyBoy with null window (headless) and run 100 frames.
Use `PyBoy(rom, window='null')` instead of `PyBoy(rom, window='SDL2')`. Do not use `with PyBoy(...):`.
Install SDL2 via `brew install sdl2` or use `window='null'`.
Use `window='display'` or `window='null'` instead.
Use `from pyboy import PyBoy`.
Provide a valid path to a .gb or .gbc ROM file. For testing without a ROM, you can use `pyboy = PyBoy(None, window='null')` but note that may cause other issues.
Use `window='display'` for a visible window, or `window='null'` for headless.
No dependency data recorded yet.