openai / gym

A toolkit for developing and comparing reinforcement learning algorithms.
https://www.gymlibrary.dev
Other
34.77k stars 8.61k forks source link

I was writing the given code in colab. But the following error prompted:- NameError: name 'base' is not defined. My Pyglet version is 1.5.0 #1981

Closed Samar-080301 closed 3 years ago

Samar-080301 commented 4 years ago

`import gym

env = gym.make("MountainCar-v0") env.reset()

done = False while not done: action = 2 # always go right! newstate, reward, done, = env.step(action) env.render() env.close() `

kethan1 commented 4 years ago

Gym is incompatible with pyglet==1.5.0 Do this: pip install pyglet==1.3.2