“pip list”错误124 - 在Mac OS x上安装

时间:2013-08-30 22:59:28

标签: python macos virtualenv pip

我正在尝试安装pip。我遇到了一个问题而且我不确定如何绕过它。

我已经激活了我的virtualenv。

当我运行$ pip时,我得到命令列表,但是当我运行$ pip list时,我得到以下响应。

distribute (0.6.28)
pip (1.4.1)
Exception:
Traceback (most recent call last):
  File "/Users/Marcus/Documents/Django/venv/lib/python2.7/site-packages/pip/basecommand.py", line 134, in main
    status = self.run(options, args)
  File "/Users/Marcus/Documents/Django/venv/lib/python2.7/site-    packages/pip/commands/list.py", line 80, in run
    self.run_listing(options)
  File "/Users/Marcus/Documents/Django/venv/lib/python2.7/site-    packages/pip/commands/list.py", line 127, in run_listing
    self.output_package_listing(installed_packages)
  File "/Users/Marcus/Documents/Django/venv/lib/python2.7/site-packages/pip/commands/list.py", line 136, in output_package_listing
    if dist_is_editable(dist):
  File "/Users/Marcus/Documents/Django/venv/lib/python2.7/site-packages/pip/util.py", line 347, in dist_is_editable
    req = FrozenRequirement.from_dist(dist, [])
  File "/Users/Marcus/Documents/Django/venv/lib/python2.7/site-packages/pip/__init__.py", line 194, in from_dist
    assert len(specs) == 1 and specs[0][0] == '=='
AssertionError

Storing complete log in /Users/Marcus/.pip/pip.log

感谢

1 个答案:

答案 0 :(得分:1)

尝试使用建议的解决方案here on GitHub

  

使用时安装分发时会发生这种情况   http://python-distribute.org/distribute_setup.py脚本。跑点   安装-U分发修复问题。该错误仅在   PIP == 1.4。