PyOpenGL glutInit NullFunctionError

前端 未结 11 1808
梦如初夏
梦如初夏 2020-11-30 05:13

I am running Anaconda Python 2.7 on a Win7 x64 machine and used

pip install PyOpenGL PyOpenGL_accelerate

at the Anaconda command line to i

11条回答
  •  余生分开走
    2020-11-30 05:20

    If installing PyOpenGL from easy_install, pip or conda, make sure that you have already installed a GLUT implementation, such as FreeGLUT (prebuilt Windows binaries).

    For FreeGLUT, copy the distributed files to a location on your hard drive and then add the path to the bin directory (which contains the GLUT DLLs) to your PATH environment variable. Then PyOpenGL should work as expected.

提交回复
热议问题