0

I have just installed pygame and as soon as i try to imort it into a python 2.7 file this error is throw up

 Traceback (most recent call last):
  File "/Users/Ben/Desktop/Python/Game/main.py", line 2, in <module>
    import pygame as pg
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pygame/__init__.py", line 95, in <module>
    from pygame.base import *
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pygame/base.so, 2): no suitable image found.  Did find:
    /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pygame/base.so: no matching architecture in universal wrapper

does anybody know why this is happening and how to fix it.

Thanks.

Ben Poulter
  • 101
  • 2
  • The bitness of the Python version and pygame version probably don't match. For a 32 bit Python version you need the 32 bit pygame, and 64 bit Python for a 64 bit pygame version. Also, tell us how you tried to install pygame and what operating system you use. – skrx Mar 24 '17 at 20:22
  • [How to install pygame](https://stackoverflow.com/documentation/pygame/3959/getting-started-with-pygame/16814/installing-pygame#t=201703242025037596055) – jcarder Mar 24 '17 at 20:25

0 Answers0