python – Pygame崩溃了?
发布时间:2020-12-20 11:46:03 所属栏目:Python 来源:网络整理
导读:我一直在为AGES使用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 modulefrom pygame.base import *
我一直在为AGES使用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 我被告知问题是多个SDL库,但我找不到任何重复的SDL库. 解决方法
Apple已经引入了系统完整性保护,作为开发人员,我们可能需要禁用它.
>重新启动计算机并按住Command R直到屏幕上出现Apple徽标,将Mac重新启动到恢复模式. 所有功劳都归于:)>> https://apple.stackexchange.com/questions/208478/how-do-i-disable-system-integrity-protection-sip-aka-rootless-on-max-os-x-el (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |