env.render()报错

执行env.render()时报错pyglet.canvas.xlib.NoSuchDisplayException: Cannot connect to “None”
将运行指令改为

xvfb-run -s "-screen 0 1400x900x24" xxx.py

你可能感兴趣的:(debug,debug)