ubuntu中执行pip list出现的错误,求教如何解决!
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)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试把打开
"/usr/lib/python2.7/dist-packages/pip/__init__.py"文件 ,把这个断点行注释就可以了。使用无异常。我的电脑可能是安装Flask引起的。网上安装#004ED0 !important;background-color:#FDFDFD;">pip #002D7A !important;background-color:#FDFDFD;">install#006FE0 !important;background-color:#FDFDFD;"> #006FE0 !important;background-color:#FDFDFD;">-U distribute的办法无效/