Open In App

How to Install Pyglet in Python on Linux?

Improve
Improve
Like Article
Like
Save
Share
Report

The pyglet is a Python library. It is a cross-platform windowing and multimedia library and is planned for developing games and other visually-rich applications like GUI applications and many more. It has an active developer and user community so that users can easily solve issues. It also supports user interface event handling, loading images, and videos, music, joysticks, etc. It is available for macOS, Windows, Linux operating systems.

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.

In this article, we will look into the process of installing Pyglet in Python on the Linux Operating System.

Requirements:

Installing Pyglet package on Linux using PIP

To install the Pyglet package in Linux we have to follow the following steps:

Step 1: First of all, we will install Python3 on our Linux Machine. Use the following command in the terminal to install Python3.

sudo apt-get install python3

Installing-Python3-on-Linux

Step 2: Now, we install the pip module which is required to install and manage the packages in Python3. So we use the following command for installation:

sudo apt install python3-pip

Installing-the-pip-module

Step 3: Now, install the Pyglet package by using the following command.

sudo pip3 install pyglet

or

sudo apt-get install python-pyglet

Installing-the-Pyglet-package

Verifying Pyglet package Installation on Linux using PIP

To verify if the Pyglet package has been successfully installed in your system run the below command in Terminal:

python3 -m pip show pyglet

You’ll get the below message if the installation is complete successfully:

Verifying-Pyglet-package-installation


Last Updated : 31 Jan, 2022
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads