Pygame needs Python, and if you don’t have that already, you can easily download it from reputed sources. But, before that, let’s learn the steps on how you can install Pygame on Windows 10 easily.
How to Install Pygame on Windows 10 (Latest Working):
Step 1: Download Python’s Latest Version
Before you ask experts on how to install pygame on windows 10, you have to be sure of using the newest version of Python 3, as installed on your system. If you haven’t and need to install Python 3.8.2, you can visit https://www.python.org/downloads/windows/ and then install the latest release.
Step 2: Select the Customize Installation Option:
Now, the next step to download pygame is to work on the Python installer. While running it, you need to select “Customize installation” option. Then click on the “next” button and then check out the box, which states “install for all users” right at the top of the list in the “Advanced options” menu. Later, you have to click at the “install” tab.
You May Also Like :- How to Install Old Nvidia Drivers on Windows 10
Step 3: Copy Python’s Installed Files Path:
When you have covered the step of downloading and installing Python 3, it is time to launch the File Explorer.
For this step, you have to click the tab, which says “This PC.” Then you need to select the drive where the Windows is installed, preferably in C drive. Later, double-click on that said folder of “Program Files (x86).” Finally, double click again on the Python folder, which is stated as “Python 36-32”.
Step 4: Pasting the File Path in System Variables:
At this stage, you have to launch the Control Panel. For that, you have to open the “Start” menu and then search for the “control” option in its search box. Here, the Control panel will be your first option to have appeared in Start Menu.
Now, it is time to click on the “System and Security” option and then click on “System.” For the next step, you have to check in with the “Advanced system settings”.
When the window appears after clicking on the “Advanced System,” you have to select “Environment Variables” from the page.
It is time to edit the existing Path system variable. For that, you need to select the “Path” option from the list under “System variables.” Then click on the “Edit” tab.
Now, you have to click on the “New” option and then paste the chosen copied path from the previous panel into the empty textbox. You have to click on the “Ok” button twice for saving the changes as made.
Step 5: Now Launch Command Prompt:
At this stage, the time has come to open the “Command Prompt” box as the administrator. For that, you need to open the “start” menu and then search for “cmd” option in the available search box. This is going to be your first option to be appearing in the current start menu. You have to right-click on the given option and then select the option that states “Run as administrator.” Now you are one step closer on pygame install now.
When the Command Prompt box appears further, you have to type the word “cd” and leave a space after that and then right-click in Command Prompt for pasting that path to Python. Then you need to press Enter.
Now you have to type the command “cd Scripts” in the stated Command prompt and then press “enter.”
Step 6: Ready to install Pygame:
Once you have covered the steps successfully, as mentioned above, you are all set to install Pygame on Windows 10 now. For that, you have to type in the command “pip install pygame” and then press the Enter button.
Now, you have successfully installed Pygame once you reach this stage. To verify if you have done it right, type the command “python” for launching Python interactive based interpreter.
Step 7: The Last Step:
Now, type “import pygame” in the interpreter and then press the Enter button.
Once you have entered the previous tines into the interpreter, if it doesn’t show any error, then you have successfully installed this Pygame on Windows 10. You are now welcome to write any form of the graphical program using this Pygame library.
What is Pygame?
Before you jump straight for the steps on how to install pygame on windows 10, you might want to know what Pygame actually is. In layman’s term, it is stated as a cross-platform set of the Python modules, primarily designed for creating video games. It comprises of computer graphics and some sound libraries, which are designed with Python programming language. Ask experts on what is pygame and get a detailed answer on the same.
Sometimes, errors might occur while installing Pygame on Windows 10 for the first time. You might come across a message like “no module named pygame.” If you are a victim of such an error message, you can find a solution from experts too. Visit the Python folder and then open the command window. Now, you have to type “C:\python34\scripts> python -m pip install pygame –user.” For testing it, open IDE and then type “Import pygame print (pygame.ver).” You can see the pygame working as good as new.
Once you follow all the basic steps of installing pygame on Windows 10, you can start working on video games with ease. Experts are always there to help you get proper results.