weixin_36482145
weixin_36482145
采纳率100%
2016-10-22 15:53 阅读 2.0k
已采纳

求助:MACBOOK中import pygame出错

Last login: Sat Oct 22 23:44:21 on ttys000
huangpengfeideMacBook-Pro:~ Admin$ python
Python 2.7.10 (default, Jul 30 2016, 18:31:42)
[GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.34)] on darwin
Type "help", "copyright", "credits" or "license" for more information.

import pygame
Traceback (most recent call last):
File "", line 1, in
File "/Library/Python/2.7/site-packages/pygame/__init__.py", line 95, in
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

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享

1条回答 默认 最新

相关推荐