OpenGL in Python with PyOpenGL
Wed, Aug 19, 2020
1-minute read
Installation for Ubuntu based OS
Requirements
- Python 3
- python3-pip
Open the terminal
Update the system
sudo apt-get update
For PyOpenGL packages
pip3 install PyOpenGL PyOpenGL_accelerate
For freeglut
sudo apt-get install libglu1-mesa-dev freeglut3-dev mesa-common-dev
To check the installation
-
Open a new python file
-
Enter the code
from OpenGL.GL import * from OpenGL.GLU import * from OpenGL.GLUT import * print('package Import Successful') # If you see this printed to the console then installation was successful