【问题标题】:DistributionNotFound running the flake8 on Mac OS XDistributionNotFound 在 Mac OS X 上运行 flake8
【发布时间】:2014-05-20 12:24:18
【问题描述】:

在使用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

【问题讨论】:

    标签: python-2.7 pip flake8


    【解决方案1】:

    我今天在 Linux 上遇到了同样的问题。解决了这个运行:

    pip install --upgrade setuptools
    

    希望也能帮助到你。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-02-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多