【已解决】DQN报错:NameError: name ‘glPushMatrix‘ is not defined

1、问题

pycharm在运行DQN平衡杆代码时报错:NameError: name ‘glPushMatrix’ is not defined。
画面只出现一个白色背景。
在这里插入图片描述

2、分析

pyglet版本过高,降低版本即可。

pip install pyglet==1.5.27

在这里插入图片描述

3、测试

没有报错,运行成功。
在这里插入图片描述
在这里插入图片描述

参考链接

猜你喜欢

转载自blog.csdn.net/qq_43750528/article/details/128879237