Questions tagged «xvfb»

14
如何在服务器上运行OpenAI Gym .render()
我正在通过Jupyter(Ubuntu 14.04)在p2.xlarge AWS服务器上运行python 2.7脚本。我希望能够渲染我的模拟。 最小的工作实例 import gym env = gym.make('CartPole-v0') env.reset() env.render() env.render() 导致(除其他事项外)以下错误: ... HINT: make sure you have OpenGL install. On Ubuntu, you can run 'apt-get install python-opengl'. If you're running on a server, you may need a virtual frame buffer; something like this should work: 'xvfb-run -s …
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.