0

I've tried to use my installed pygame module in a script, but got an error "No module named 'pygame.base'". I am using a Mac. My Python version is 3.10.9.

I have searched for solutions available and tried to run pip3 uninstall pygame, pip cache purge, and pip3 install pygame to resolve this issue, but this did not help.

Thank you!

user36697
  • 11
  • 3
  • What is your code? – Naitik Mundra Dec 28 '22 at 04:47
  • @NaitikMundra I use pygame.Rect class, pygame.mouse module, pygame.event module and other functionalities. Please use this link to access the whole file: https://github.com/me50/cyl-art/blob/3649593a87721635a0e927634c1cba1bab302bd8/minesweeper_runner.py – user36697 Dec 28 '22 at 06:39
  • No links. You must add the code in the question. Links to external resources tend to break or the content may change. See [What topics can I ask about here?](https://stackoverflow.com/help/on-topic): *"Questions seeking debugging help ("why isn't this code working?") must include the desired behavior, a specific problem or error **and the shortest code necessary to reproduce it in the question itself.**"* – Rabbid76 Dec 28 '22 at 08:14

0 Answers0