How to Install GD module on Linux?
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.
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:
If there is any error while importing the module then is not installed properly.
Please Login to comment...