PyOpenGL glutInit NullFunctionError

前端 未结 11 1793
梦如初夏
梦如初夏 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:17

    According to the link below the problem was with the glut installation rather than pip install. It seems glut files are not part of PyOpenGL or PyOpenGL_accelerate package. You have to download them seperately.

    https://stackoverflow.com/a/39181193/7030177

    Windows user can use the link below to download glut as mentioned in the given link. ftp://ftp.sgi.com/opengl/glut/glut3.html.old#windows

    Linux Users can just install glut using the following command:

    sudo apt-get install freeglut3-dev
    

    Hope this helps :)

提交回复
热议问题