QOpenGLShaderProgram: could not create shader program

 spyder 黑屏

Anaconda3-5.2.0-Linux-x86_64.sh 安装后spyder 运行黑屏,报错:

QOpenGLShaderProgram: could not create shader program
QOpenGLShader: could not create shader
Could not link shader program:
""
QOpenGLShaderProgram: could not create shader program
QOpenGLShader: could not create shader
QOpenGLShader: could not create shader
shader compilation failed:
""
QOpenGLShaderProgram::uniformLocation(qt_Matrix): shader program is not linked
QOpenGLShaderProgram: could not create shader program
QOpenGLShader: could not create shader
QOpenGLShader: could not create shader
shader compilation failed:
""
QOpenGLShaderProgram::uniformLocation(qt_Matrix): shader program is not linked
QOpenGLShaderProgram: could not create shader program
QOpenGLShader: could not create shader
QOpenGLShader: could not create shader
shader compilation failed:

去他的。python3就是很多bug,不稳定。

解决方案找来找去找不到合适的

最后:

pip install pyopengl

搞定了

原文地址:https://www.cnblogs.com/whu-zeng/p/12116919.html