在ubuntu上运行pip列表时收到错误

时间:2015-10-23 16:26:09

标签: python-2.7 ubuntu pip

我试图在Ubuntu 15.04上运行pip list来检查我的python模块的版本。

我在通过列表之后收到以下错误:

argparse (1.2.1)
characteristic (0.1.0)
chardet (2.3.0)
colorama (0.3.2)
configobj (5.0.6)
dnspython (1.12.0)
Flask (0.10.1)
Flask-Cache (0.13.1)
Flask-Login (0.2.11)
Flask-SQLAlchemy (2.0)
Flask-Uploads (0.1.3)
html5lib (0.999)
hurry.filesize (0.9)
idna (0.9)
itsdangerous (0.24)
Jinja2 (2.7.3)
Landscape-Client (14.12)
MarkupSafe (0.23)
MySQL-python (1.2.5)
ndg-httpsclient (0.3.2)
PAM (0.4.2)
pip (1.5.6)
pyasn1 (0.1.7)
pyasn1-modules (0.0.5)
pycrypto (2.6.1)
PyMySQL (0.6.6)
pyOpenSSL (0.13.1)
pyPdf (1.13)
PyPDF2 (1.24)
pyserial (2.6)
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 367, in dist_is_editable
    req = FrozenRequirement.from_dist(dist, [])
  File "/usr/lib/python2.7/dist-packages/pip/__init__.py", line 299, in from_dist
    assert len(specs) == 1 and specs[0][0] == '=='
AssertionError

Storing debug log for failure in /tmp/tmp0YGnDq

我在这个问题中尝试了答案:command "pip list" shows error

但这并不能解决问题。

修改

我还做了apt-get remove python-pip,并重新安装。

我不知道从哪里开始。有什么建议吗?

0 个答案:

没有答案