V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
byron
V2EX  ›  PyGame

mac 10.8.4 安装pygame失败

  •  
  •   byron · 2013-07-15 20:15:58 +08:00 · 5454 次点击
    这是一个创建于 3908 天前的主题,其中的信息可能已经有所发展或是发生改变。
    import pygame出错:

    >>> import pygame
    Traceback (most recent call last):
    File "<stdin>", line 1, in <module>
    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

    折腾了好久,无解,求助。
    4 条回复    2015-03-11 17:06:50 +08:00
    013231
        1
    013231  
       2013-07-15 20:23:37 +08:00
    pygame是用brew安裝的嗎? 如果不是, 卸掉用brew重裝.
    byron
        2
    byron  
    OP
       2013-07-15 20:46:09 +08:00
    @013231 感谢,但还是不行。
    提示:No available formula for pygame
    013231
        3
    013231  
       2013-07-16 03:17:05 +08:00
    @byron
    brew tap samueljohn/python
    brew install pygame

    https://github.com/samueljohn/homebrew-python
    saonian2222
        4
    saonian2222  
       2015-03-11 17:06:50 +08:00
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3210 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 12:00 · PVG 20:00 · LAX 05:00 · JFK 08:00
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.