Pyglet is a library for the Python programming language that provides an object-oriented application programming interface for the creation of games and other multimedia applications.
Features of pyglet:
- It does not have any external dependencies.
- It allows you to load images, sound, music, and videos in any format.
- It is completely written in Python.
- It also uses multiple windows and multi-monitor desktops effectively.
First of all, we will install Python3 on our Linux Machine.
Now, we install the pip module which is required to install and manage the packages in Python3. Use the following command for installation:
sudo apt-get install python3-pip python3-dev
pip3 --version
Now, install the Pyglet package by using the following command:
sudo pip3 install pyglet
or
sudo apt-get install python-pyglet
To verify if the Pyglet package is installed in your system, run the command below in Terminal:
python3 -m pip show pyglet