为什么PIP在点冻结时引发AssertionError? [英] Why is PIP raising an AssertionError on pip freeze?
本文介绍了为什么PIP在点冻结时引发AssertionError?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的控制台:
desarrollador@desarrollador-HP-14-Notebook-PC1:~$ pip freeze
Exception:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 126, in main
self.run(options, args)
File "/usr/lib/python2.7/dist-packages/pip/commands/freeze.py", line 68, in run
req = pip.FrozenRequirement.from_dist(dist, dependency_links, find_tags=find_tags)
File "/usr/lib/python2.7/dist-packages/pip/__init__.py", line 156, in from_dist
assert len(specs) == 1 and specs[0][0] == '=='
AssertionError
我安装了龙卷风包装,此后发生了.我该如何解决?
I installed the tornado package and this happened since. How can I fix it?
推荐答案
原因:Ubuntu 12.04中的python-pip软件包已经严重过时,并且某些软件包名称存在一些错误(如我所见),无法正确解析它们.
Reason: The python-pip package in Ubuntu 12.04 is seriously outdated and has some bugs with certain package names (as I can see) and cannot parse them correctly.
解决方案:通过easy_install安装更新版本的pip.
Solution: install a newer version of pip, via easy_install.
这篇关于为什么PIP在点冻结时引发AssertionError?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文