Got problem with import pygame. Can anyone help

Python 2.7.14 (v2.7.14:84471935ed, Sep 16 2017, 12:01:12)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type “copyright”, “credits” or “license()” for more information.

WARNING: The version of Tcl/Tk (8.5.9) in use may be unstable.
Visit IDLE and tkinter with Tcl/Tk on macOS | Python.org for current information.

import pygame

Traceback (most recent call last):
File “<pyshell#1>”, line 1, in
import pygame
File “/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pygame/init.py”, line 95, in
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
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pygame/base.so: no matching architecture in universal wrapper

@sharul Thanks very much for your question!

Is this an iOS app? It appears that this is a project in Python. Are you trying to run this in Xcode?

This topic was automatically closed after 166 days. New replies are no longer allowed.