我正在嘗試設置我的機器使用帶FreeGlut的PyOpenGL。我有Python版本3.5.2和Windows 8的64位副本使用FreeGlut for Python 3.5.2設置PyOpenGL
我一直在使用PIP下載PyOpenGL,然後下載freeglut並置於include\
和lib\
文件夾在C:\Program Files\Common Files\MSVC\freeglut
。我也在鏈接到C:\ Work \ freeglut.dll的環境變量中放置了64位freeglut.dll文件的鏈接。由於我不知道任何OpenGL,我只是試圖從此運行代碼頁面查看我的設置是否可以正常工作http://www.de-brauwer.be/wiki/wikka.php?wakka=PyOpenGLSierpinski。運行時收到錯誤信息
Traceback (most recent call last):
File "sier_tri.py", line 35, in <module>
glutInit()
File "C:\Users\Dylan\AppData\Local\Programs\Python\Python35-32\lib\site-packag
es\OpenGL\GLUT\special.py", line 333, in glutInit
_base_glutInit(ctypes.byref(count), holder)
File "C:\Users\Dylan\AppData\Local\Programs\Python\Python35-32\lib\site-packag
es\OpenGL\platform\baseplatform.py", line 407, in __call__
self.__name__, self.__name__,
OpenGL.error.NullFunctionError: Attempt to call an undefined function glutInit,
check for bool(glutInit) before calling
有沒有人知道是什麼原因造成這個問題/如何解決它?
我仍然得到相同的錯誤,即使與程序 – cdn
在同一目錄中的dll是否有64位python和64位dll? –