If you see the following issue, you will need to install Pygame:

"C:\Users\CodaKid\Desktop\SAM_PROJECT_FOLDER\src\main.py", line 1, in <module>
import pygame
ModuleNotFoundError: No module named 'pygame'

The first step to making sure pygame works is that you have a supported version of Python. Our courses are tested up to Python 3.6(not the latest version which is 3.9 at the time of this article).

PodSixNet(a library used in Python 3) doesn't work with Pygame 2, so you will need to install an older pygame version.


You can download Python 3.6 from the link below. Windows please choose "Windows x86-64 executable installer" and Mac computers need to choose "macOS 64-bit installer"

Now you can start installing Pygame.

Windows Instructions

1. Start by opening a command line. You can do this by pressing the windows key and then typing cmd and then pressing enter.
2. Put in the following code into the command line:

py -m pip install -U pygame==1.9.6 --user

If you get an error that Python wasn't found, please visit our other article for installing Python here.

3. If it succeeds, make sure to restart any IDLE windows you have open before running your game.

Mac Instructions

1. Start by opening a terminal. Terminal can be found under applications/utilities.
2. Put in the following code into the command line:

python3 -m pip install -U pygame==1.9.6 --user

If you get an error that Python wasn't found, please visit our other article for installing Python here.
3. If it succeeds, make sure to restart any IDLE windows you have open before running your game.

If You Still Need Help

Reach out to support using the Chat Box in the lower right hand corner.

Did this answer your question?