Loading...

How to Install PyGame on Windows

Installing PyGame on a Windows PC

This blog will tell you how you can install PyGame on a computer with Windows OS

Oct 22, 2018    By Team YoungWonks

In this blog, we shall look at the procedure to install PyGame on a Windows PC. Now PyGame is cross-platform set of modules in the Python programming language. These modules are designed for writing video games. Thus PyGame includes computer graphics and sound libraries that have been created to be used with the Python programming language.

 

Now how do we do install PyGame on a Windows computer? Let us start by looking at how one can install Python on a Windows PC. 

The video below tells you how to do so...

 

Now that we have installed Python on the Windows PC, we can go on to install PyGame. 

Installation of PyGame on Windows: 

  •  Start by closing any IDLE or Python window that might be open. This could include the shell or the program itself. 

pic 1

 

Pic 1b

 

  •  Click on the Start menu and open IDLE. 

pic 2

 

  •  Now click on File at the top and then select Open. 

Pic 3

 

  •  Then double click on Scripts folder and open it. 

pic 4

 

  • At the top, you’ll see Scripts written; right click on Scripts and select Copy address as text. 

pic 5

 

  • Go to the Start menu again and open Command Prompt by typing cmd. 

pic 6

 

  • Now type cd followed by space and then paste the copied address / location. 

pic 7

 

  • After this, press Enter. 

Pic 8

 

  • Now type pip3 install pygame like you see on the screen. 

Pic 9

 

  • Wait for the successful installation message and your PyGame installation is done. 

pic 10

 

  •  You can test if PyGame has been installed on your Windows OS by typing import pygame in your IDLE.

pic 11

 

  • If there’s no error, it means PyGame has been successfully installed on your Windows computer. 

pic 12

 

 

This blog is presented to you by YoungWonks. The leading coding program for kids and teens.

YoungWonks offers instructor led one-on-one online classes and in-person classes with 4:1 student teacher ratio.

Sign up for a free trial class by filling out the form below:

By clicking the "Submit" button above, you agree to the privacy policy
help