Factsheet
» pip install pygame
How to install pygame for dummies?
installation - How do I install Pygame with pip in Python 3.4? - Stack Overflow
How to install Pygame in Python - Stack Overflow
Installing pygame
Videos
how do i get installed pygame on python version 3.11.4
I did this in Ubuntu and it worked for me with Python 3.4:
I ran a command which apparently upgraded pip and setuptools to the latest version, according to this guide in the docs, but did it as a superuser. It might end up not being strictly necessary:
sudo pip install -U pip setuptools
Then, I ran the install command for Pygame as a superuser as well:
sudo pip install pygame
In Windows
1.open CMD
2.Path should locate where pip is installed for me it is C:\Users\qwrht\AppData\Local\Programs\Python\Python36-32\Scripts>
if python is in other directory follow steps in link CMD command to change directories
3.getting to the right path where pip is installed use command **pip install pygame.**in CMD
4.after Downloading pygame current version, Successfully installed pygame message will be displayed 
Matt have you tried installing it with pip:
pip3 install pygame
For user based installs, check out:
https://www.pygame.org/wiki/GettingStarted
pip3 install's make it easy to import
Here is a quick guide to help you install Pygame: http://kidscancode.org/blog/2015/09/pygame_install/
pip is a command that should work for you since you have Python 3.7 installed already.
The reason you are not able to import pygame into your python interpreter is because you are installing it for python2 and starting the python3 interpreter(Ubuntu 13.10 uses python3 by default).
To install pygame for python2(your version is 2.7.5), do this on a terminal(Ctrl+Alt+t):
sudo apt-get install python-pygame
and then start the python2 interpreter
python2
and then try to import pygame as
import pygame
To set python2 as your default interpreter, you can set an alias in your bash_aliases file. To do this, open a terminal and type:
nano ~/.bash_aliases
This may open an empty file, depending upon whether you have set an alias before and then type
alias python='python2'
Do not change symlinks in /usr/bin/python3, since this may break many application in Ubuntu 13.10 which use python3 vociriferously.
This should install pygame for python 3, as python3-pip is required for pygame.
sudo apt-get install python3-pip python3-dev
sudo pip3 install pygame
You can install the package as Administrator, by following these steps:
1.Right click on the Command Prompt icon 2.Select the option: Run This Program As An Administrator 3.Run the command: pip install pygames
Instead of you can use the command
pip install --user pygames
The other answers didn't work for me. I checked this site and made sure that pip, setuptools, and ez_setup were installed at the latest versions. Still no luck. Finally, I discovered the magic words here:
pip install pygame --pre
Per this, --pre option tells pip to include pre-release versions of packages when searching for the latest version. Apparently that's what's needed as of this writing (2023-02-08).
(Thanks to accddd)
» pip install pygame-ce