python-2.7 – 在Mac OS X上运行flake8的DistributionNotFound
发布时间:2020-12-20 12:24:33 所属栏目:Python 来源:网络整理
导读:使用pip install flake8安装后,我无法运行flake8. 重新安装pep8没有帮助.我在Mac OS X 10.9.2上运行默认的 python. 我的pep8版本是1.5.6. File "/usr/local/bin/flake8",line 5,in module from pkg_resources import load_entry_point File "/System/Library
使用pip install flake8安装后,我无法运行flake8.
重新安装pep8没有帮助.我在Mac OS X 10.9.2上运行默认的 python. 我的pep8版本是1.5.6. File "/usr/local/bin/flake8",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: pep8>=1.4.6 解决方法
我今天在Linux上遇到了同样的问题.解决了这个问题:
pip install --upgrade setuptools 希望能帮到你. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |