【问题标题】:Pygame installation not working?Pygame安装不起作用?
【发布时间】:2013-01-29 19:43:09
【问题描述】:

我正在尝试在我的 Mac 上安装 pygame。
我正在使用 python 2.7 并下载了 2.7 的 pygame。
我做正常的安装。
然后当我在 shell 上输入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

有人知道发生了什么吗?

顺便说一句,我正在使用 Lion

【问题讨论】:

  • 你安装的是什么版本?你从哪里拿到包裹的?你使用二进制分发吗?
  • 您也可以查看类似问题的答案stackoverflow.com/questions/7288571/…
  • 不应该去 import os, sys from pygame import *

标签: python installation osx-lion pygame


【解决方案1】:

从 Python.org 下载官方 Mac Python。系统自带的苹果不支持pygame。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-04-28
    • 2014-08-06
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多