Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can i import OpenGL in anaconda python?

I use ipython notebook on anaconda python but i have no idea how to install or import opengl. Can anyone help me solve this ? I use anaconda on linux xubuntu. Sorry for bad english.

like image 767
kekhuay Avatar asked Dec 12 '22 04:12

kekhuay


1 Answers

As pointed out by David, Vispy provides OpenGL bindings for OpenGL ES 2.0. More interesting about vispy is vispy.gloo which provides a much easier (object oriented) way to use OpenGL.

If you need full desktop OpenGL functionality (not limited to ES 2.0), you need PyOpenGL. I think that currently it is supported (at least on Linux). This works for me:

conda install pyopengl

Alternatively, pip should work as well:

pip install pyopengl
like image 151
Almar Avatar answered Jan 07 '23 02:01

Almar