python3 -m pip install pygame==2.0.0.dev6
try:
pip install pygame
else:
pip3 install pygame
else:
python -m pip install pygame
else:
python3 -m pip install pygame
else:
py -m pip install pygame(this is my method)
(this is only for windows)
# Check if you have it installed
pip show pygame
# Check your version of pip (you might need to upgrade)
pip --version
# Install pygame with no cache
pip install pygame --no-cache-dir
# Check if its installed
pip show pygame
# Result:
Name: pygame
Version: 2.1.2
Summary: Python Game Development
Home-page: https://www.pygame.org
Author: A community project.
Author-email: pygame@pygame.org
License: LGPL
Location: c:users
ameappdatalocalprogramspythonpython310libsite-packages
Requires:
Required-by: