当我试图在我的终端中打开bpython时,我收到了以下错误,我不知道如何修复它。我是Python新手,所以我想我可能对包系统的理解不太正确。我不确定安装easy_install和pip是否有冲突。
Traceback (most recent call last):
File "/usr/local/bin/bpython", 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: bpython==0.12发布于 2014-05-22 12:45:51
哈我想我能回答这个问题。当我们发布最后一个版本的bpython时,我在PyPi web界面中感到困惑,不小心从索引中删除了0.12 tarball,代之以0.13。
您的要求是从索引中准确地提取bpython==0.12,但遗憾的是,索引中没有这个索引(到现在为止它已经被更正了)。
https://stackoverflow.com/questions/22518647
复制相似问题