“Attempt to call an undefined function glutInit, check for bool【glutInit】 before calling”
Python调用glutInit出现 OpenGL.error.NullFunctionError:
**原来是pip install自动安装的版本不对,(自动安装时安装的是32位的)只有64bit系统会有这个问题,解决方法是下载64bit的PyOpenGL安装包。
下载地址:(选择适合自己的版本)
http://www.lfd.uci.edu/~gohlke/pythonlibs/#pyopengl`
下载下来的whl文件,用pip install file_name.whl进行安装后,问题解决。
参考:
https://www.cnblogs.com/gamesun/p/5837142.html