How to Install GD module on Linux?
Last Updated :
23 Jul, 2025
GD is a python library. It provides various features and an async-ready API wrapper for the geometry dash. It is easy to use. It is used to implement the geometry dash API and is also very handy to work with object-oriented design.
Installing GD module on Linux
Method 1: Using pip to install GD Package
Follow the below steps to install the GD package on Linux using pip:
Step 1: Install the latest version of Python3 in the Linux system.
Step 2: Check if pip3 and python3 are correctly installed or not in your system with the help of the following command:
python3 --version
pip3 --version

Step 3: Upgrade your pip to avoid errors during the installation process.
pip3 install --upgrade pip

Step 4: Enter the following command to install GD using pip3.
pip3 install gd.py

Method 2: Using setup.py to install GD package
Follow the below steps to install the GD package on Linux using the setup.py file:
Step 1: Download the latest source package of GD for python3 from here.
curl https://files.pythonhosted.org/packages/2b/31/34455ef4925b10bd75171127f4d467dec8894a89813620903613f19ed6c1/gd.py-0.11.0.tar.gz > gd.tar.gz

Step 2: Extract the downloaded gd package using the following command:
tar -xzvf gd.tar.gz

Step 3: Go inside the gd folder and Enter the following command to install the package.
cd gd.py-0.11.0
python3 setup.py install

Verifying GD installation on Linux
Make the following import in your python terminal to verify if the installation has been done properly:
import gd

If there is any error while importing the module then is not installed properly.
Similar Reads
How to install GIMP on Linux? GIMP is a free and open-source raster graphics editor used for image manipulation and image editing, free-form drawing, transcoding between different image file formats, and more specialized tasks. It is not designed to be used for drawing, though some artists and creators have used it for such. In
2 min read
How to Install py-gd module on MacOS? GD is a python library. It provides various features and an async-ready API wrapper for the geometry dash. It is easy to use. It is used to implement the geometry dash API and is also very handy to work with object-oriented design. Installing GD module on MacOSMethod 1: Using pip to install GD Packa
2 min read
How to Install Tor on Linux? Tor browser is a web browser that is designed and developed to protect your privacy online and is mostly famous among normal people as a key for safely accessing hidden or restricted online resources, including those on the dark web. We will see what Tor is and how to install it on your Linux machin
5 min read
How to Install Python-GDmodule on Linux? A module is nothing more than a file containing Python code. A module can describe functions, groups, and variables. A module can also contain executable code. Multiple programs can import a module for their application, so a single code can be used by multiple programs to complete their functionali
1 min read
How to Install MongoDB Compass on Linux? MongoDB is a free, open-source, cross-platform, document-oriented database. It is also classified as a non-SQL database program. Compass is an interactive tool for querying, optimizing & analyzing MongoDB data. It works in a visual environment. It can be installed in any operating system like Wi
1 min read
How to Install Turbo C++ on Linux? In this article, we will look into how to install Turbo C++ on Linux. Turbo C++ is the free and Open-Source Software, it is a development tool for writing programs in the C/C++ language. Turbo C++ is a compiler and IDE (Integrated development environment) originally from Borland. Prerequisites: To r
2 min read