我正在尝试从睡衣示例文件夹构建 HelloWorld 示例页面。但是,当我运行时收到此错误:sudo pyjsbuild helloworld.py
. 这个错误对 python 来说似乎很普遍,因为它似乎与我的 python 环境的设置/配置有关。关于在哪里寻找问题的任何建议?
这是错误
Traceback (most recent call last):
File "/usr/local/bin/pyjsbuild", line 5, in <module>
from pkg_resources import load_entry_point
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 2603, in <module>
working_set.require(__requires__)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 666, in require
needed = self.resolve(parse_requirements(requirements))
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 565, in resolve
raise DistributionNotFound(req) # XXX put more info here
pkg_resources.DistributionNotFound: six