Teams - No Module named Pygame error

Hello, I’ve created some REPL teams assignments using PyGame. Most of my students can open the program and run things just find. However, a few students get the “No Module named Pygame”. Then, when I add the Pygame package we get an error because there is no display surface.

I’m wondering if these students are in the new NIX environment and if that’s causing the problem.

There is a Pygame Replit template. Try using that.
https://replit.com/@replit/Pygame?v=1

1 Like

You can also turn on the Show Hidden Files button, and then goto replit.nix and copy the stuff from the replit.nix file in the repl @QwertyQwerty88 shared into your replit.nix file.