所以在我遇到这个错误之前,py2App很想找不到名为'pygame'的模块,所以我在setup.py中导入pygame然后重新编译它。它工作直到我面对errno 2这是一个名为'i
'的文件,但是没有这样名字的文件,我查看了给定的目录
Setup.py:
from setuptools import setup
import pygame
APP = ['space.py']
DATA_FILES = [('', 'img'),('','mp3')]
OPTIONS = {'iconfile':'rocket-icon.icns','argv_emulation': True}
setup(
app=APP,
data_files=DATA_FILES,
options={'py2app': OPTIONS},
setup_requires=['py2app'],
)
...
copying file /Library/Python/2.7/site-packages/pygame-1.9.1release-py2.7-macosx-10.11-intel.egg/pygame/transform.so -> /Users/wolf/Desktop/python/dist/space.app/Contents/Resources/lib/python2.7/lib-dynload/pygame/transform.so
copying file i -> /Users/wolf/Desktop/python/dist/space.app/Contents/Resources/i
error: [Errno 2] i: 'No such file or directory'
问:我如何解决这个问题?