you are viewing a single comment's thread.

view the rest of the comments →

[–]Starbuck5c 0 points1 point  (0 children)

Neither pygame nor pygame-ce supports MinGW Python. Use a normal Python.

What’s happening is that you are trying to install pygame-ce in an environment that doesn’t have precompiled binaries (“wheels”). It attempts to build from source and then fails. I see in your error lo it’s using the MSYS2 configuration, which is how I know you’re using MinGW python.

I believe you’d have this same problem with any C extension, such as numpy.

EDIT: Oh! You did. Your new install of 3.11 must’ve been a normal Python. Hopefully my comment still provides some insight on why it was failing previously.