Closed ikamensh closed 2 years ago
Im able to replicate your issue with pip install gym[atari]
but pip install pygame
seems to fix it for me
Yes, env.render()
is broken in the current release of Gym. I'll be releasing another update to fix this on our side.
It's worth noting that we do not recommend you use env.render()
. Please supply the render_mode
kwarg to the constructor, e.g.,
env = gym.make('ALE/Breakout-v5', render_mode='human')
With ale-py==0.7.5
we removed .render(mode="human")
. This will now display a warning and instruct users to use the render_mode
keyword argument when constructing the environment.
-> fails to import pygame
->
Environment: MacOs with Python 3.8.5, gym dependencies: