我想使用Q学习来自动化我的游戏,并考虑使用Colab获得额外的GPU支持。安装必要的要求并运行代码后,Colab会出现以下错误:
> error:
> Traceback (most recent call last)
<ipython-input-16-28b090095233> in <module>()
5
6 pygame.font.init()
----> 7 pygame.display.list_modes()
8 pygame.init()
9
>error: video system not initialized
如果有人能解决这个错误或告诉我如何使用VNC来解决这个问题,那就太好了。
我已经尝试过
pygame.init()
以及pygame.display.list_modes()
。
pygame.display.list_modes()
,你必须先使用pygame.init()
来初始化视频系统(如果存在的话)。 - undefined