我在 Snow Leopard(10.6) 上玩 py2app,运行时遇到了一些问题
python setup.py py2app
我收到以下错误:-
% python setup.py py2app
running py2app
Traceback (most recent call last):
File "setup.py", line 18, in <module>
setup_requires=['py2app'],
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/core.py", line 152, in setup
dist.run_commands()
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/dist.py", line 975, in run_commands
self.run_command(cmd)
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/dist.py", line 995, in run_command
cmd_obj.run()
File "/Library/Python/2.6/site-packages/py2app-0.7.3-py2.6.egg/py2app/build_app.py", line 502, in run
if sysconfig.get_config_var('PYTHONFRAMEWORK') is None:
AttributeError: 'NoneType' object has no attribute 'get_config_var'
我已经按照此处的文档安装了 py2app ,但是似乎有一些环境变量我没有设置。我还尝试克隆一些项目,比如这里的一个,我最终遇到了同样的错误。
有人可以指出我在使用前应该如何配置 py2app 的文档吗?谢谢。