我一直在使用pygame的和Python,而现在一个ImportError,且从未有过的Pygame提出了这个问题:导入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
我已经安装Python包堆像画中画,分发,py2app以及更多,所以这些东西中的一些可能会“破坏”pygame?
您需要安装SDL:https://www.libsdl.org/ – Dair
我很确定我安装了SDL。 – SirSmokes