Google compute engine 使用谷歌计算引擎运行openai健身房

Google compute engine 使用谷歌计算引擎运行openai健身房,google-compute-engine,Google Compute Engine,我试图在Google计算引擎VM上运行CartPole-v0示例。 我已经安装了XQuartz,并使用-X进行了ssh 首先,我得到了 pyglet.canvas.xlib.NoSuchDisplayException:无法连接到“无” 然后根据,我使用“xvfb run-s”-屏幕0 1400x900x24“/bin/bash” 然后运行良好,结果如下: Making new env: CartPole-v0 You are calling 'step()' even though this

我试图在Google计算引擎VM上运行CartPole-v0示例。

我已经安装了XQuartz,并使用-X进行了ssh

首先,我得到了 pyglet.canvas.xlib.NoSuchDisplayException:无法连接到“无”

然后根据,我使用“xvfb run-s”-屏幕0 1400x900x24“/bin/bash”

然后运行良好,结果如下:

Making new env: CartPole-v0
You are calling 'step()' even though this environment has already returned done = True. You should always call 'reset()' once you receive 'done = True' -- any further steps are undefined behavior

但是没有任何渲染…

请使用上“观察”部分的代码

Making new env: CartPole-v0
You are calling 'step()' even though this environment has already returned done = True. You should always call 'reset()' once you receive 'done = True' -- any further steps are undefined behavior