Pyglet is a cross-platform windowing and multimedia library for Python. It can be downloaded at https://bitbucket.org/pyglet/pyglet/wiki/Download.
Pyglet can be installed using the pip installer, which is the default package manager for Python by using the following command:
pip3 install pyglet
Windows users can also download and install binary packages for pyglet from http://www.lfd.uci.edu/~gohlke/pythonlibs/#pyglet.
Pyglet needs another module called AVbin to support playback of file formats such as MP2 and MP3. AVbin can be obtained for Windows, Linux, and macOS from the download section at http://avbin.github.io.