我今天在 OS X Lion 上安装了 cocos2d,但是每当我尝试在 Python 解释器中导入cocos时,都会收到一堆导入错误。
文件“”,第 1行,在文件“/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/cocos2d-0.5.0-py2.7.egg/cocos/init.py ",第 105 行,在 import_all() 文件 "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/cocos2d-0.5.0-py2.7.egg/cocos/init中。 py”,第 89 行,在 import_all 导入操作文件“/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/cocos2d-0.5.0-py2.7.egg/cocos/actions / 初始化.py”,第 37 行,从 basegrid_actions 导入 * 文件“/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/cocos2d-0.5.0-py2.7.egg/cocos /actions/ basegrid_actions.py”,第 62 行,从 pyglet.gl 导入 * 文件“build/bdist.macosx-10.6-intel/egg/pyglet/gl/ init .py”,第 510 行,在文件“build/bdist”中.macosx-10.6-intel/egg/pyglet/window/ init .py”,第 1669 行,在文件“build/bdist.macosx-10.6-intel/egg/pyglet/window/carbon/ init.py”,第 69 行,文件“build/bdist.macosx-10.6-intel/egg/pyglet/lib.py”,第 90 行,load_library 文件“build/bdist.macosx-10.6-intel/egg/pyglet/ lib.py”,第 226 行,在 load_framework 文件中“/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ctypes/init .py”,第 431 行,在 LoadLibrary 中返回self._dlltype (name)文件“/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ctypes/init .py”,第 353 行,在init self._handle = _dlopen(self._name, mode) OSError: dlopen(/System/Library/Frameworks/QuickTime.framework/ QuickTime, 6): 找不到合适的图像。确实找到了:/System/Library/Frameworks/QuickTime.framework/QuickTime: mach-o,但架构错误 /System/Library/Frameworks/QuickTime.framework/QuickTime: mach-o,但架构错误
由于我无法修复它,我想完全删除 cocos2d。问题是我似乎无法在任何地方找到详细说明如何从 Python 安装中删除它的指南。
非常感谢任何有关这些问题的帮助。