Skip to content
Related Articles

Related Articles

How to Install PyOpenGL package on Linux?

View Discussion
Improve Article
Save Article
  • Last Updated : 31 Jan, 2022

PyOpenGL library in Python language is an implementation of OpenGL in Python. PyOpenGL library consists of built-in handy graphical and audio libraries. PyOpenGL can be used with the PyGame library which is used for Game Development or GUI game development. PyOpenGL is a cross-platform binding library with OpenGL in Python. In this, article, we will look into the steps of installing the PyopenGL Library on the Linux Operating System.

Requirements:

Installing PyOpenGL package on Linux using PIP

To install the PyOpenGL 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

Step 2: Now, install the pip module which is required to install 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 PyOpenGL package by using pip module. Use the following command to install PyOpenGL package.

sudo pip3 install pyopengl

or 

sudo apt-get install -y python-opengl

Installing-the-PyOpenGL-package

Verifying PyOpenGL package Installation on Linux using PIP

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

python3 -m pip show pyopengl

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

Verifying-PyOpenGL-package-installation

My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!