2

Macにpygameをインストールしようとしています。
私はpython 2.7を使用しており、2.7用のpygameをダウンロードしました。
通常のインストール作業を行います。
次に、シェルに移動して入力すると、次のimport pygame
エラーが発生します。

Traceback (most recent call last):
    File "<pyshell#2>", line 1, in <module>
        import pygame
    File "/Library/Frameworks/Python.framework/Ve… line 95, in <module>
        from pygame.base import *
    ImportError: dlopen(/Library/Frameworks/Python.framew… 2): no suitable image found. Did find:
    /Library/Frameworks/Python.framework/… no matching architecture in universal wrapper

誰が何が起こっているのか知っていますか?

ちなみにライオン使ってます

4

1 に答える 1

0

Python.org から公式の Mac Python をダウンロードします。システムに付属している Apple のものは pygame では動作しません。

于 2013-02-07T00:49:14.713 に答える