PyOpenGL is normally distributed via PyPI using standard pip:
$ pip install PyOpenGL PyOpenGL_accelerate
You can install this repository by branching/cloning and running pip:
$ cd pyopengl $ pip install -e . $ cd accelerate $ pip install -e .
Note that to compile PyOpenGL_accelerate you will need to have a functioning Python extension-compiling environment.
Learning PyOpenGL
If you are new to PyOpenGL, you likely want to start with the OpenGLContext tutorial page. Those tutorials require OpenGLContext, (which is a big wrapper including a whole scenegraph engine, VRML97 parser, lots of demos, etc) you can install that with:
$ pip2.7 install "OpenGLContext-full==3.1.1"
Or you can clone it (including the tutorial sources) with:
$ git clone https://github.com/mcfletch/openglcontext.git
or (for GitHub usage):
$ git clone https://github.com/mcfletch/pyopengl.git
The documentation pages are useful for looking up the parameters and semantics of PyOpenGL calls.
Running Tests
You can run the PyOpenGL test suite from a source-code checkout, you will need:
git (for the checkout)
GLUT (FreeGLUT)
GLExtrusion library (libgle)
GLU (normally available on any OpenGL-capable machine)
tox (pip install tox)
Running the test suite from a top-level checkout looks like:
$ tox
The result being a lot of tests being run in a matrix of environments. All of the environment will pull in pygame, some will also pull in numpy. Some will have accelerate, and some will not.
Release files for PyOpenGL 3.1.10
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyopengl-3.1.10.tar.gz | 1.9 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyopengl-3.1.10-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.1 MB
Release files / pyopengl-3.1.10.tar.gz
| Download URL | pyopengl-3.1.10.tar.gz |
|---|---|
| Size | 1.9 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c4a02d6866b54eb119c8e9b3fb04fa835a95ab802dd96607ab4cdb0012df8335
|
|
BLAKE2b-256 checksum How to use checksums |
6f16912b7225d56284859cd9a672827f18be43f8012f8b7b932bc4bd959a298e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 18, 2025.
Transparency logRelease files / pyopengl-3.1.10-py3-none-any.whl
| Download URL | pyopengl-3.1.10-py3-none-any.whl |
|---|---|
| Size | 3.2 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
794a943daced39300879e4e47bd94525280685f42dbb5a998d336cfff151d74f
|
|
BLAKE2b-256 checksum How to use checksums |
dee41ba6f44e491c4eece978685230dde56b14d51a0365bc1b774ddaa94d14cd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 18, 2025.
Transparency log