Computer Science, asked by adityakrishnanpn, 9 months ago

I Want to Know on how to add pygame to the pc. Pygame is a module for python and i don''t know how to add it

Answers

Answered by SIDDHJ
1

Answer:

Please mark as the Brillianest answer

Explanation:

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.

Click on the Start menu and open IDLE.

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

Then double click on Scripts folder and open it.

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.

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

After this, press Enter.

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

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.

Similar questions