pip freeze err

来源:互联网 发布:数据新闻大趋势 pdf 编辑:程序博客网 时间:2024/06/05 20:57

更多内容可移驾至我的独立Blog: http://www.justfbt.com/


备忘一下

root@x04:/tmp#pip freezeException: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/freeze.py", line 74, 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 286, in from_dist    assert len(specs) == 1 and specs[0][0] == '=='AssertionErrorStoring debug log for failure in /root/.pip/pip.log

解决办法:

# pip install -U setuptools# pip install -U pip
0 0