我正在使用 Gym AI穆霍科环境并尝试执行 python 脚本,但一直出现以下错误。
这是我正在使用的命令,后面跟着错误:
$ sudo python3 main.py --env=Reacher-v1 --is_train=True --display=True
[2018-04-08 11:35:23,529] initializing glfw@(3, 1, 2)
X Error of failed request: GLXBadRenderRequest
Major opcode of failed request: 155 (GLX)
Minor opcode of failed request: 1 (X_GLXRender)
Serial number of failed request: 135
Current serial number in output stream: 136
答案1
我的解决方案:
sudo apt-get purge nvidia*
sudo apt-get install --reinstall xserver-xorg-video-intel libgl1-mesa-glx libgl1-mesa-dri xserver-xorg-core
sudo apt-get install xserver-xorg
sudo dpkg-reconfigure xserver-xorg