These instructions apply to pyglet 2.0.

pyglet is a pure python library, so no special steps or complitation are required for installation. You can install it in a variety of ways, or simply copy the pyglet folder directly into your project. If you’re unsure what to do, the recommended method is to install it into your local site-packages directory. pyglet is available on PyPI. for easy installation via pip:

pip install pyglet --user

You can also clone the repository using git and install from source:

git clone
cd pyglet
git checkout pyglet-1.5-maintenance
python install --user

To play video, or a wide selection of compressed audio, pyglet can optionally use FFmpeg.

Running the examples

The source code archives include examples. Archives are available on Github:

cd pyglet-x.x.x
python examples/

As mentioned above, you can also clone the repository using Git:

git clone
cd pyglet
python examples/