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.

Answer from Ishan Anand on Stack Overflow

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.

Answer from Ishan Anand on Stack Overflow
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

๐ŸŒ
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

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
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
Unable to install pygame on Python via pip (Windows 10) - Stack Overflow
Currently unable to install Pygame via pip: pip install pygame Getting this message: Concerned by it being termed an EOF error, is this an error in the module itself? 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
๐ŸŒ
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
๐ŸŒ
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.
๐ŸŒ
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.
Find elsewhere
๐ŸŒ
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....
๐ŸŒ
YouTube
youtube.com โ€บ watch
How to Install PyGame with latest Python 3.13 on Windows 10/11 [2025 Update] PyGame Tutorial - YouTube
Hello Everyone! Today, in this video, I am going to step-by-step guide you on How to install PyGame with the latest Python 3.13 on Windows 11. Windows (64-bi...
Published ย  October 4, 2025
๐ŸŒ
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...
๐ŸŒ
Pygame
pygame.org โ€บ download.shtml
Downloads
We changed the type of installer, and there will be issues if you don't uninstall pygame 1.7.1 first (and all old versions). ... (optional) Numeric for windows python2.5 (note: Numeric is old, best to use numpy) http://rene.f0o.com/~rene/stuff/Numeric-24.2.win32-py2.5.exe
๐ŸŒ
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
๐ŸŒ
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.
๐ŸŒ
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
๐ŸŒ
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.
๐ŸŒ
Python.org
discuss.python.org โ€บ python help
How to install pygame for dummies? - Python Help - Discussions on Python.org
February 13, 2024 - i am currently attempting to learn python. I am seriously struggling to understand anything. i slightly understand give something a name and what it needs to do but im trying to delve deeper into it so i can try to grasp the concept. im looking at how to install pygame all over the web and ...
๐ŸŒ
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 ...