๐ŸŒ
PyPI
pypi.org โ€บ project โ€บ pygame
pygame ยท PyPI
The online documentation stays up to date with the development version of pygame on GitHub. This may be a bit newer than the version of pygame you are using. To upgrade to the latest full release, run pip install pygame --upgrade in your terminal.
      ยป pip install pygame
    
Published ย  Sep 29, 2024
Version ย  2.6.1
Homepage ย  https://www.pygame.org
Python module
Pygame is a cross-platform set of Python modules designed for writing video games. It includes computer graphics and sound libraries designed to be used with the Python programming language. Pygame was originally โ€ฆ Wikipedia
Factsheet
Original authors Lenard Lindstrom, Renรฉ Dudfield, Pete Shinners, Nicholas Dudfield, Thomas Kluyver, and others
Developer Pygame Community
Release 28 October 2000; 25 years ago (2000-10-28)
Factsheet
Original authors Lenard Lindstrom, Renรฉ Dudfield, Pete Shinners, Nicholas Dudfield, Thomas Kluyver, and others
Developer Pygame Community
Release 28 October 2000; 25 years ago (2000-10-28)
๐ŸŒ
Pygame
pygame.org โ€บ wiki โ€บ GettingStarted
GettingStarted - pygame wiki
Make sure you install python with the "Add python to PATH" option selected. This means that python, and pip will work for you from the command line. There is documentation with python for the "windows installation steps"
Discussions

python 3.x - How to install pygame windows 10? - Stack Overflow
I just tried to install pygame for python 3.4 my windows computer, but apparently I need to extract the whl file? I have seen other questions like this one on stackoverflow and it says to write in commant prompt: ... Copy'pip' is not recognized as an internal of external command, operable program, or batch file. Is this because I have Windows 10... More on stackoverflow.com
๐ŸŒ stackoverflow.com
How do I install pygame?
Install Pyhon Tutorial This should help to install Python correctly (I assume you're on Windows OS, if not check the other parts on that page for your own OS. Setting the PATH (environment) variable just means, that your system will recognise the "python" command within the terminal later from anywhere (also including the pip installer). You just have to check the checkmark on the installer. As for pygame: Once python is up and running you install it like any other library with the pip command pip install pygame-ce Later in your code you need to import it with import pygame. More on reddit.com
๐ŸŒ r/pygame
13
2
August 8, 2025
How to install pygame in Windows 10 for python 3.9? - Stack Overflow
I have tried everything Here are some of the methods I have tried C:\Users\win 10\AppData\Local\Programs\Python\Python39> python -m pip install pygame-1.9.6-cp27-cp27m-win_amd64.whl The follow... More on stackoverflow.com
๐ŸŒ stackoverflow.com
How to install PyGame on Windows 10
When I try to do this, it gives me this error: ERROR: Invalid requirement: ':all:'. And, when I do the correct syntax, it just says ERROR: No matching distribution found for only-binary. You could just do pip3 install pygame or pip install pygame (if you have python 3.x only) More on reddit.com
๐ŸŒ r/pygame
3
0
October 25, 2020
๐ŸŒ
GeeksforGeeks
geeksforgeeks.org โ€บ installation guide โ€บ how-to-install-pygame-in-windows
How to Install Pygame on Windows ? - GeeksforGeeks
July 23, 2025 - In order to install Pygame, Python must be installed already in your system. To check whether Python is installed or not in your system, open the command prompt and give the command as shown below. If this command runs successfully, and we are able to get a Python version then we are good to go. Otherwise, we have to install Python in our system, to do this refer to How to install Python on Windows? PIP is a tool that is used to install python packages.
Top answer
1 of 7
3

For me this command works.->py -m pip install -U pygame --user But first, make sure you properly configure your environment variables. This tutorial http://www.aaronstannard.com/how-to-setup-a-proper-python-environment-on-windows/ will help you how to setup environment variables for python, make sure you do it correctly only step 2 ,no need to do any other steps from this tutorial, now you can follow my steps that were listed below. I will assume that you have already installed python in your computer

Step1

Search for cmd and Right click on cmd and do run as administrator.

Step2

Run the command, py -m pip install -U pygame --user, but before you run this command first of all make sure you configure your environment variables properly.

Step3

Type python in command prompt, this will take you to the python command line which will look like this ">>>".If not then you have a problem with your system variables.

Step4

Make sure you are in python command line and then type import pygame,and after this press ctrl+z and enter that will take you out from python command line.

Step5

Make sure you are not in python command line and then run this command py -m pygame.examples.aliens,if the game starts then congrats you are done.

2 of 7
2

It can be possible that the pip/ wheel is not installed follow this link to install pip link

If already installed maked sure it is updated if not

You can use this code to update: python โ€“m ensurepip โ€“-upgrade or pip install --upgrade pip

To install wheel pip install wheel or upgrade pip install wheel --upgrade

once this is done you are good to install pygame

At the command line, make sure youโ€™re in the same directory as the .whl file and run pip install package-name.whl

๐ŸŒ
MiniTool Partition Wizard
partitionwizard.com โ€บ home โ€บ partition manager โ€บ how to install pygame on windows 10? [a full guide]
Install PyGame on Windows 10 - Discover the Ultimate Guide
December 5, 2024 - Step 7: Type pip install pygame and press Enter to install Pygame. Pygame should have been successfully installed on Windows 10. To verify this, type python and press Enter to start the Python interactive interpreter.
Find elsewhere
๐ŸŒ
Python Forum
python-forum.io โ€บ thread-25133.html
pygame install windows 10 s
Hi all, please forgive my noobness but I'm at a loss and need help **cry** Any advice would be very much appreciated. Just bought a new laptop to get back into programming. It runs windows 10 S. I've installed 3.8 from the store and it runs fine. 3...
๐ŸŒ
Pfaj
pygame.pfaj.ca
PyGame Installation Guide
Make sure that in Step 6 you didn't ... the Microsoft logo. Select Command Prompt (Admin) and click Yes on the permission screen. Paste python -m pip install --upgrade pip and press Enter....
๐ŸŒ
Art of Problem Solving
artofproblemsolving.com โ€บ wiki โ€บ index.php โ€บ Getting_Started_With_Pygame
Getting Started With Pygame - AoPS Wiki
1. Download and install pygame-1.9.2a0.win32-py3.2.msi (the second-to-last entry in the Windows section) from pygame.org.
๐ŸŒ
Pygame
pygame.org โ€บ download.shtml
Downloads
pygame-1.9.4.tar.gz ~ 4.6M ~ 9387835fab92a8b4a3c9e51e2c9267a670476aaa ยท Wheel packages are also available on PyPI, and may be installed by running pip install wheel
๐ŸŒ
Reddit
reddit.com โ€บ r/learnpython โ€บ relatively new to python, can't install pygame
r/learnpython on Reddit: Relatively new to python, can't install pygame
February 24, 2024 - You're supposed to use the shortened name py instead, py -m pip install pygame should work as an alternative. This command runs pip as a module rather than directly running the program, and uses py, three Python launcher instead of directly ...
๐ŸŒ
Rip Tutorial
riptutorial.com โ€บ installing pygame
pygame Tutorial => Installing pygame
(The file is named something like pygame -<pygame version> - <python version>- win32.whl) ... inside your terminal, bash or consol. Note: if pip is not found in PATH try to run python -m pip install your-pygame-package.whl
๐ŸŒ
YoungWonks
youngwonks.com โ€บ blog โ€บ How-to-Install-PyGame-on-Windows
How to Install PyGame on Windows
October 23, 2018 - Now type pip3 install pygame like you see on the screen. Wait for the successful installation message and your PyGame installation is done. You can test if PyGame has been installed on your Windows OS by typing import pygame in your IDLE.
๐ŸŒ
Hofstra
cs.hofstra.edu โ€บ docs โ€บ guides โ€บ installingpygame.html
How to Install Pygame - Computer Science - Hofstra University
April 18, 2018 - You are ready to install Pygame. Type the following command in the Terminal and press Enter. Note that you will probably have to enter your password in the Terminal in order for the command to run: sudo pip3 install hg+http://bitbucket.org/pygame/pygame
๐ŸŒ
Invent with Python
inventwithpython.com โ€บ blog โ€บ 2023 โ€บ 01 โ€บ 27 โ€บ how-to-install-pygame-on-windows-macos-and-linux
How to Install Pygame on Windows, macOS, and Linux - Invent with Python
January 27, 2023 - import subprocess, sys; subprocess.run([sys.executable, '-m', 'pip', 'install', 'https://inventwithpython.com/pygame/pygame-2.1.2-cp311-cp311-win_amd64.whl']) You can test to see if Pygame was installed successfully by importing it from the interactive shell. If no error message appears, the installation was successful: ... This blog post will be updated as new versions of Python and Pygame are made available.