[英]pyjamas - pyjsbuild error due to DistributionNotFound
I am trying to build the HelloWorld example page from the Pyjamas example folder. 我正在尝试从“睡衣”示例文件夹构建“ HelloWorld”示例页面。 However I am receiving this error when I run: sudo pyjsbuild helloworld.py
. 但是我在运行时收到此错误: sudo pyjsbuild helloworld.py
。 This error seems pretty universal to python as it seems to be related to the setup/configuration of my python environment. 这个错误对于python来说似乎很普遍,因为它似乎与我的python环境的设置/配置有关。 Any advice on where to look for the problem? 关于在哪里寻找问题的任何建议?
Here is the error 这是错误
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
After trying the various answers, it turns out pip
was not properly installing the six
package, whatever that is. 在尝试了各种答案之后,事实证明pip
没有正确安装six
软件包,无论是什么。 So I ran sudo easy_install pip (--upgrade)
to make sure the script configuration was right. 因此,我运行sudo easy_install pip (--upgrade)
以确保脚本配置正确。 It wrote some extra files so I assume that's why my next command sudo pip install six
or sudo pip install six --upgrade
worked. 它写了一些额外的文件,所以我认为这就是为什么我的下一个命令sudo pip install six
或sudo pip install six --upgrade
起作用的原因。 Now I ran into another error -_-, For anyone looking later: Runtime Error: Top module not found 'hello world'
现在,我遇到另一个错误-_-,对于以后查看的任何人: Runtime Error: Top module not found 'hello world'
Edit: The top module error is coming from trying to build into the output folder that is not pyjs/
. 编辑:顶部模块错误来自尝试构建到不是pyjs/
的输出文件夹中。 All I had to do was move the folder up to pyjs/
folder in sitepackages/
. 我要做的就是将文件夹移动到sitepackages/
pyjs/
文件夹中。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.