Simple Instructions
Step One: Open a terminal window
-> command + space -> type terminal -> open terminal
Step Two: Check pip is installed
type the following into the terminal window
-> pip3 list
Step Three: Install pygame
type the following into the terminal window
-> pip3 install pygame
Step Four: Check pygame is installed
type the following into the terminal window
-> pip3 list
Detailed Instructions
This content is from https://www.youngwonks.com/blog/How-to-Install-PyGame-on-a-Mac
Now that we have installed Python on the Mac, we can go on to install PyGame.
Installation of PyGame on Mac:
- Start by opening Spotlight search bar on your Mac. You can do this by taking your cursor to the top right corner of your desktop and clicking on the magnifying glass icon.
- Once you have opened the Spotlight search bar, type terminal in the bar to open terminal.
- Now type
pip3 - If you see a bunch of general options on the screen, it means that pip is already installed on your MacBook.
- Now type
pip3 install pygame
as shown in this (below) image. - The installation will start at this point and you need to wait till the PyGame installation is done. You’ll know it’s done when you see a message (as shown below) saying successfully installed pygame.
- To test if PyGame has been installed on your Mac, open IDLE by typing IDLE in your Spotlight search bar.
- Then type import pygame as shown in the image.
- If you do not see any error, it means that PyGame has been successfully installed on your Mac.