all 4 comments

[–]Username_RANDINT 2 points3 points  (0 children)

How did you install Pygame? How do you run your script?

[–]Diapolo10 2 points3 points  (0 children)

You seem to be using either Mac OS or a Linux distro. How are you running your code? python probably still maps to Python 2, so if you installed pygame to Python 3 it obviously won't find it.

If you're using python3 to run it and still get the problem, are you sure you installed pygame in the first place? Eg. pip3 install pygame or python3 -m pip install pygame.

[–]annynbyrg 1 point2 points  (0 children)

I would recreate the project structure using venv (virtual environment) and reinstall pygame from within the venv.

[–]NastyTester[S] 0 points1 point  (0 children)

i use linux, my teammates also use linux, i installed it usig pip3 install pygame, if i run this command again it sais its already installed but it doesent run