ubuntu中执行pip list出现的错误,求教如何解决!

raidyue 发布于 2015/01/18 16:11
阅读 2K+
收藏 0
Exception:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 122, in main
    status = self.run(options, args)
  File "/usr/lib/python2.7/dist-packages/pip/commands/list.py", line 80, in run
    self.run_listing(options)
  File "/usr/lib/python2.7/dist-packages/pip/commands/list.py", line 142, in run_listing
    self.output_package_listing(installed_packages)
  File "/usr/lib/python2.7/dist-packages/pip/commands/list.py", line 151, in output_package_listing
    if dist_is_editable(dist):
  File "/usr/lib/python2.7/dist-packages/pip/util.py", line 348, in dist_is_editable
    req = FrozenRequirement.from_dist(dist, [])
  File "/usr/lib/python2.7/dist-packages/pip/__init__.py", line 286, in from_dist
    assert len(specs) == 1 and specs[0][0] == '=='
AssertionError

pip 1.5.6 from /usr/lib/python2.7/dist-packages (python 2.7)


加载中
0
不折腾难受斯基
不折腾难受斯基
尝试把打开"/usr/lib/python2.7/dist-packages/pip/__init__.py"文件 ,把这个断点行注释就可以了。使用无异常。我的电脑可能是安装Flask引起的。网上安装pip install -U distribute的办法无效/
返回顶部
顶部