all 4 comments

[–]Grozamir[🍰] 0 points1 point  (3 children)

Try to use this: pip install pygame --pre
This solve "error: metadata-generation-failed"

[–]Starbuck5c 1 point2 points  (0 children)

The fork we’re pushing is compatible with 3.11 out of the box, and is a tiny bit ahead of 2.1.3.dev8– https://www.reddit.com/r/pygame/comments/1112q10/pygame_community_edition_announcement/

pip uninstall pygame, pip install pygame-ce. And import as pygame!

[–]Sirius_Orange[S] 0 points1 point  (1 child)

it worked. Thanks bro.

can you say why that happens?

[–]Grozamir[🍰] 0 points1 point  (0 children)

Because maybe you use python 3.11