0

When I try to import pygame, I just received a import error:

dlopen(/Users/user/Library/Python/3.8/lib/python/site-packages/pygame/base.cpython-38-darwin.so, 2): 
no suitable image found.

Did find:
/Users/user/Library/Python/3.8/lib/python/site-packages/pygame/base.cpython-38-darwin.so: 
mach-o, but wrong architecture.

and it work well before, just today when I open it, it gives me a import error. I don't know what's happened

Cflowe Visit
  • 331
  • 1
  • 4
  • 12
  • always put full error message (starting at word "Traceback") in question (not in comments) as text (not screenshot, not link to external portal). There are other useful information. – furas Feb 26 '22 at 00:48
  • @furas But there is not any error message there, this is all, I use ctrl+c to copy it in full error message – Cflowe Visit Feb 26 '22 at 00:59
  • did you run it in console/terminal ? Did you make some updates in system or in Python? Did you try to reinstall `pygame` ? – furas Feb 26 '22 at 01:40
  • This is a MacOS architecture thing. Are you on an M1 mac or an intel mac? If you're on an M1 mac, you should be using a universal2 installation of python. (Like Python 3.9.4 or above, iirc). How did you install pygame? – Starbuck5 Feb 26 '22 at 01:53
  • That doesn't answer my question, that's absolutely different, explain why my question is duplicate – Cflowe Visit Oct 27 '22 at 00:43

0 Answers0