4

() 中的 NoSuchDisplayException Traceback(最近一次调用最后一次)

      3 env.reset()
      4 for _ in range(1000):
----> 5     env.render()
      6     env.step(env.action_space.sample()) # take a random action
      7 env.close()

9 帧 /usr/local/lib/python3.6/dist-packages/pyglet/canvas/xlib.py in init (self, name, x_screen)

    121         self._display = xlib.XOpenDisplay(name)
    122         if not self._display:
--> 123             raise NoSuchDisplayException('Cannot connect to "%s"' % name)
    124 
    125         screen_count = xlib.XScreenCount(self._display)

NoSuchDisplayException:无法连接到“无”

4

0 回答 0