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
Step 3: Upgrade your pip to avoid errors during the installation process using the following command:
pip install –upgrade pip
Step 4: Enter the following command to install GD using pip3.
pip install gd.py
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
Step 2: Now we extract the downloaded gd package with the help of the given command.
tar -xzvf gd.tar.gz
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
Verifying GD installation on Windows
Make the following import in your python terminal to verify if the installation has been done properly:
import gd
If you get any error while importing the module then is not installed properly in your system.
Please Login to comment...