gymnasium==1.1.1 just worked on Ubuntu 24.10:then from a virtualenv:then the hello world:just works and opens a game window.
sudo apt install swig
pip install "gymnasium[all]"
import gymnasium as gym
env = gym.make("LunarLander-v3", render_mode="human")
observation, info = env.reset()
episode_over = False
while not episode_over:
action = env.action_space.sample()
observation, reward, terminated, truncated, info = env.step(action)
episode_over = terminated or truncated
env.close()
Lunar Lander environemnt of Farama Gymnasium
. To actually play the games manually with keyboard, you need to define your own keybindings. Feature request for default keybindings: github.com/Farama-Foundation/Gymnasium/discussions/1330
There is no C API, you have to go through Python: github.com/Farama-Foundation/Gymnasium/discussions/1181. Shame.
It would be cool if they maintained their own list!
github.com/DLR-RM/rl-baselines3-zoo seems to contain some implementations.
Not-for profit that took up OpenAI Gym maintenance after OpenAI dropped it.
Articles by others on the same topic
There are currently no matching articles.