【发布时间】:2017-06-19 21:44:31
【问题描述】:
我正在尝试在我的 Mac 上安装 pygame,当我导入 pygame 时,返回以下错误
Traceback (most recent call last): File "<pyshell#0>", line 1,
in <module> import pygame 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.
我已经看到这是一个架构问题,但是我不知道如何安装 32 位 python。
提前致谢
【问题讨论】:
标签: python macos python-2.7 pygame