Horje
How to Install py-gd module on Windows?

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 Windows

Method 1: Using pip to install GD Package

Follow the below steps to install the GD package on Windows using pip:

Step 1: Install the latest version of Python3 in Windows.

Step 2: Check if pip and python are correctly installed or not with the help of the following command:

python –version

pip –version

Checking-python-and-pip-version

Step 3: Upgrade your pip to avoid errors during the installation process using the following command:

pip install –upgrade pip

Upgrading-pip-in-Windows

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

pip install gd.py

Installing-GD-package-on-Windows-using-pip

Method 2: Using setup.py to install GD package

Follow the below steps to install the GD package on Windows 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

Downloading-the-source-package-for-GD-in-Windows

Step 2: Now we extract the downloaded gd package with the help of the given command.

tar -xzvf gd.tar.gz

Extracting-the-gd.tar.gz-file

Step 3: Now go inside the folder and then enter the following command to install the package.

cd gd.py-0.11.0

python setup.py install

Installing-GD-on-Windows-using-the-setup.py-file

Verifying GD installation on Windows

Make the following import in your python terminal to verify if the installation has been done properly:

import gd

Verifying-GD-installation-on-Windows

If you get any error while importing the module then is not installed properly in your system.




Reffered: https://www.geeksforgeeks.org


How To

Related
How to Install LibreOffice on MacOS? How to Install LibreOffice on MacOS?
How to Install SQLmap in Linux? How to Install SQLmap in Linux?
How to Install Git on Windows Subsystem for Linux? How to Install Git on Windows Subsystem for Linux?
How to Install a JDBC driver in Oracle SQL Developer? How to Install a JDBC driver in Oracle SQL Developer?
How to Install py-gd module on MacOS? How to Install py-gd module on MacOS?

Type:
Geek
Category:
Coding
Sub Category:
Tutorial
Uploaded by:
Admin
Views:
11