尝试在终端中打开 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