{"id":45208,"library":"kaggle-environments","title":"Kaggle Environments","description":"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.","status":"active","version":"1.30.1","language":"python","source_language":"en","source_url":"https://github.com/Kaggle/kaggle-environments","tags":["kaggle","competitions","reinforcement-learning","environments"],"install":[{"cmd":"pip install kaggle-environments","lang":"bash","label":"Default"}],"dependencies":[],"imports":[{"note":"make is a top-level function, not under envs","wrong":"from kaggle_environments.envs import make","symbol":"make","correct":"from kaggle_environments import make"}],"quickstart":{"code":"from kaggle_environments import make\n\nenv = make(\"tictactoe\", debug=True)\nprint(env.name)  # tictactoe","lang":"python","description":"Create a Kaggle environment using make(). Set debug=True to see logs."},"warnings":[{"fix":"Upgrade Python to 3.11 or later. If stuck on older Python, pin version <1.22.","message":"Python version requirement changed: versions >=1.22 require Python >=3.11. Older Python versions (3.8-3.10) will fail to install.","severity":"breaking","affected_versions":">=1.22"},{"fix":"Add debug=True when calling make(): make(\"halite\", debug=True)","message":"The 'debug' parameter in make() is required to see environment logs. Without debug=True, agent outputs (e.g., print statements) are suppressed.","severity":"gotcha","affected_versions":"all"},{"fix":"Use agents = {\"player1\": \"random\", \"player2\": \"random\"} instead of [\"random\", \"random\"].","message":"The 'evaluate' method previously accepted a list of agents as strings. Now it expects a dictionary with agent names and configurations.","severity":"deprecated","affected_versions":">=1.20"}],"env_vars":null,"search_vec":"'1.30.1':32 'agent':28 'competit':14,37,40 'current':30 'environ':2,5,15,21,38,44 'evalu':27 'gym':19 'gym-styl':18 'interact':11 'kaggl':1,4,13,39 'kaggle-environ':3 'learn':24,43 'librari':9 'new':36 'offici':8 'provid':17 'regular':34 'reinforc':23,42 'reinforcement-learn':41 'releas':33 'style':20 'submiss':29 'support':26 'version':31","created_at":"2026-06-07T12:53:54.026510+00:00","updated_at":"2026-06-07T12:53:54.026510+00:00","problems":[{"fix":"Install gym: pip install gym. If using gymnasium, ensure compatibility: pip install gym==0.26.2 (version used by kaggle-environments).","cause":"kaggle-environments depends on gym, but it may not be installed automatically or conflicts with gymnasium.","error":"ModuleNotFoundError: No module named 'gym'"},{"fix":"Either speed up your agent code, or increase timeout by passing timeout parameter to make(): make(\"halite\", debug=True, timeout=10)","cause":"Default timeout is 3 seconds per step. Slow agents will be terminated.","error":"RuntimeError: Agent timed out after 3 seconds."}],"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/Kaggle/kaggle-environments","github":"https://github.com/Kaggle/kaggle-environments","docs":null,"changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["ai-ml","testing"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"passing","verified_at":"2026-06-29","last_verified":"2026-06-29","next_check":"2026-07-29","install_tag":null}}