[Python] 安装PyOpenGL笔记

实干、实践、积累、思考、创新。 通过Pycharm安装PyOpenGL编译程序,提示以下报错: OpenGL.error.NullFunctionError: Attempt to call an undefined function glutInit, check for bool(glutInit) before calling 如下图所示 最后百度研究是因为Python版本、系统版本与PyOpenGL不兼容问题导致,于是下载对应的离线PyOpenGL的 whl,通过cmd进入对应的python下找到pip,然后通过pip重新安装whl文件即可解决。PIP会卸载旧的PyOpenGL,并提示新版库安装成功,如下图。 其中离线PyOpenGL可以再这个连接下载:https://www.lfd.uci.edu/~gohlke/pythonlibs/ 相关话题 ( Related Topics) [01]. Python 出现”invalid literal for int() with base …