Python 导入pygame会引起一种恐惧

Python 导入pygame会引起一种恐惧,python,pygame,Python,Pygame,我已经使用pygame和python有一段时间了,pygame从未提出过这个问题: Traceback (most recent call last): File "dodgeball.py", line 1, in <module> import pygame File "/Library/Python/2.7/site-packages/pygame/__init__.py", line 95, in <module> from pygame.base

我已经使用pygame和python有一段时间了,pygame从未提出过这个问题:

Traceback (most recent call last):
  File "dodgeball.py", line 1, in <module>
    import pygame
  File "/Library/Python/2.7/site-packages/pygame/__init__.py", line 95, in <module>
from pygame.base import *
ImportError: dlopen(/Library/Python/2.7/site-packages/pygame/base.so, 2): Library not loaded: 
@executable_path/../Frameworks/SDL.framework/Versions/A/SDL
Referenced from: /Library/Python/2.7/site-packages/pygame/base.so
Reason: unsafe use of @executable_path in /Library/Python/2.7/site-packages/pygame/base.so with restricted binary
回溯(最近一次呼叫最后一次):
文件“dodgeball.py”,第1行,在
导入pygame
文件“/Library/Python/2.7/site packages/pygame/_init__.py”,第95行,在
从pygame.base导入*
ImportError:dlopen(/Library/Python/2.7/site-packages/pygame/base.so,2):未加载库:
@可执行文件路径/。/Frameworks/SDL.framework/Versions/A/SDL
引用自:/Library/Python/2.7/site-packages/pygame/base.so
原因:使用受限二进制文件在/Library/Python/2.7/site-packages/pygame/base.so中不安全地使用@executable_path

我一直在安装大量python软件包,如pip、Distribute、py2app等,这些软件包是否会“破坏”pygame?

您可能已经安装了2个SDL库,找到所有出现的SDL,然后只重新安装一个,或者删除1个,保留另一个。

您可能已经安装了2个SDL库,查找所有出现的sdl并只重新安装一个,或删除1个并保留另一个。

您需要安装sdl:我非常确定我安装了sdl。您需要安装sdl:我非常确定我安装了sdl。sdl库在哪里?您使用的是什么操作系统?如果是linux try/usr/local/lib/和/usr/lib/i386 linux gnu/I在库中的Frameworks中的SDL.framework中找到了SDL.framework?这算是重复的吗?我正在使用MacElCapital(10.11)在哪里可以找到SDL库?你在使用什么操作系统?如果是linux try/usr/local/lib/和/usr/lib/i386 linux gnu/I在库中的Frameworks中的SDL.framework中找到了SDL.framework?这算是重复吗?我用的是MacElCapital(10.11)