-3

How do I fix this error? I'm trying to import and run a python game.

enter image description here

Daraan
  • 1,797
  • 13
  • 24
  • 1
    Please read [Discourage screenshots of code and/or errors](https://meta.stackoverflow.com/questions/303812/discourage-screenshots-of-code-and-or-errors) – Rabbid76 Oct 23 '22 at 19:42
  • Hello! Welcome to Stack Overflow! Before you start asking questions, please read [How to Ask](https://stackoverflow.com/help/how-to-ask)! Have a great day :) – WhatTheClown Oct 23 '22 at 19:46

1 Answers1

0

In the screenshot you provided, it looks like Python might be corrupted or pygame might be corrupted.

Try running pip install --upgrade --force-reinstall pygame, or pip3 install --upgrade --force-reinstall pygame.

If this doesn't work, you should reinstall Python using brew.

WhatTheClown
  • 464
  • 1
  • 7
  • 24