Failing to get pygame running under M1

Viewed 59

I tried to install the pygame module and Homebrew described here.

By installing venvdotapp, I get the Error Message:

Sorry your Python wasn't build with --enable-Framework

I think I can ignore that if I use a VENV, which Pycharm does..

By running Pycharme with pygame I get this Error:

File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pygame/__init__.py", line 81, in <module>
    from pygame.base import * # pylint: disable=wildcard-import; lgtm[py/polluting-import]
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pygame/base.cpython-39-darwin.so, 2): no suitable image found.  Did find:
    /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pygame/base.cpython-39-darwin.so: mach-o, but wrong architecture
    /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pygame/base.cpython-39-darwin.so: mach-o, but wrong architecture

I'm confused about that and don't know how to fix.

0 Answers
Related