PyOpenGL is the most common cross platform Python binding to OpenGL and related APIs. The binding is created using the standard ctypes library, and is provided under a liberal BSD-style Open-Source license.
PyOpenGL is interoperable with a large number of external GUI libraries for Python including (but not limited to):
PyOpenGL 3.x runs on:
The PyOpenGL project includes a number of sub-projects:
The easiest way to install PyOpenGL is using pip
$ pip3 install PyOpenGL PyOpenGL_accelerate
You can also manually download the packages:
unpack them into temporary directories, change to those directories and run:
python setup.py
Detailed installation instructions are available.
The documentation collection provides reference documentation, support and feedback information and pointers to more in-depth documentation.
You can work with latest version of PyOpenGL using the git distributed source code control tool on the GitHub code-hosting platform:
git clone https://github.com/mcfletch/pyopengl.git
git clone https://github.com/mcfletch/pyopengl-demo.git
git clone https://github.com/mcfletch/openglcontext.git
If you encounter a bug, feel free to file a GitHub ticket, but do note that the author of PyOpenGL only gets a few days a year to work on Open Source projects these days, so expect that responses are likely to be slow.
Bugs and general questions are best reported and answered on the PyOpenGL mailing list. The list is fairly low-traffic.