kaggle-environments is the official library for interacting with Kaggle competition environments. It provides Gym-style environments for reinforcement learning and supports evaluating agent submissions. Current version: 1.30.1, released regularly with new competition environments.
pip install kaggle-environmentsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Create a Kaggle environment using make(). Set debug=True to see logs.
Upgrade Python to 3.11 or later. If stuck on older Python, pin version <1.22.
Add debug=True when calling make(): make("halite", debug=True)Use agents = {"player1": "random", "player2": "random"} instead of ["random", "random"].Install gym: pip install gym. If using gymnasium, ensure compatibility: pip install gym==0.26.2 (version used by kaggle-environments).
Either speed up your agent code, or increase timeout by passing timeout parameter to make(): make("halite", debug=True, timeout=10)No dependency data recorded yet.