使用PyOpenGL,调用glutInit时TypeError: 'NoneType' object is not callable

在Win7 64bit上用Python+PyOpenGL时,调用glutInit()即出错:

    _base_glutInit( ctypes.byref(count), holder )
TypeError: 'NoneType' object is not callable

说的最多的解决方法是下载glut32.dll放到C:\Windows\System32,但是根本不行。

在Win7 64bit中,应该放到C:\Windows\SysWOW64,终于OK了。

至于SysWOW64的意义,参考这里什么是SysWow64

原文地址:https://www.cnblogs.com/gamesun/p/3133094.html