How do I fix this error? I'm trying to import and run a python game.
Asked
Active
Viewed 36 times
-3
-
1Please 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 Answers
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