Attempt to call an undefined function glutInit

后端 未结 1 699
一生所求
一生所求 2020-12-03 16:00

I need a glut window in python. I have the following exception using Python 3.5 and PyOpenGL.GLUT

Traceback (most recent call last):
  File \"D:\\...\\Test.p         


        
相关标签:
1条回答
  • 2020-12-03 16:47

    Problems:

    • There was no problem with pip install or easy_install
    • The glut.dll and glut32.dll were missing. (They are not part of the PyPI package) you have to install them separately or download it like I did.

    Unzipped the dll files from the glutdlls.zip and placed them next to my python file.

    Note: You can add the dll files to your PATH variable. Not necessary to keep them next to the py file.

    0 讨论(0)
提交回复
热议问题