我使用python 2.7,spyder作为我的IDE。但是,我不断收到每个import语句的警告消息。
'from OpenGL.GL import *' used; unable to detect undefined names
'from OpenGL.GL import *' used; unable to detect undefined names
'from OpenGL.GL import *' used; unable to detect undefined names
以下是我的陈述:
from OpenGL.GL import *
from OpenGL.GLU import *
from OpenGL.GLUT import *
我的代码中没有错误,它会运行,但显示对象的显示窗口是空白的。代码是直接从我的教授那里作为项目的起点给出的,我看着它在他的笔记本电脑上运行。有没有人有任何技巧来实现这一目标?我已经使用easy_install更新了OpenGL。