How to install directly from internet
Before installing pyglet, you are supposed to install a python IDE/editor. Most people use Visual Studio and PyCharm. I’m assuming that you already have PyCharm, or other Python editor/IDLE.
Now go and run command prompt, and copy and paste this (you may replace “piglet” by “pyglet”, both will work fine)
pip3 install piglet
It may take some time depending on your internet speed. If this command doesn’t work for you, copy and paste this:
sudo easy_install -U piglet
If you get an error “sudo/pip3 is not recognized as internal…”. You need to change your directory in command prompt to python\script. Then run those codes again. If you don’t know how to change the directory in cmd here is the tutorial.
If it says that new update is available, it is not mandatory to update it but you can if you want to just paste it on command prompt
python -m pip install --upgrade pip
It will once again, download and install some packages.
How to install using setup.py
Download pyglet 1.*.*.tar.gz, and extract it. Remember the directory of the folder in which you have extracted all the files. Then open command prompt, and then go to that directory where files are extracted using cmd. If you don’t know how to go to the certain directory using command prompt, use this tutorial here. Once you are inside that folder copy and paste this:
python setup.py install
It will take some time to open all the folders and automatically install them.
All set! Now you can play around with pyglet.