本文介绍了Pip:ImportError:找不到入口点('console_scripts','pip')的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我通过以下方式安装pip:

I install pip with:

$ sudo apt-get install python-setuptools, python-pip

但是当我尝试使用pip安装某些东西时,出现此错误

But when I try install something with pip i have this error

sudo pip install Flask
Traceback (most recent call last):
File "/usr/local/bin/pip", line 9, in <module>
  load_entry_point('pip==1.3.1', 'console_scripts', 'pip')()
File "/usr/local/lib/python2.7/dist-packages/pkg_resources.py", line 378, in    load_entry_point
  return get_distribution(dist).load_entry_point(group, name)
File "/usr/local/lib/python2.7/dist-packages/pkg_resources.py", line 2565, in load_entry_point
  raise ImportError("Entry point %r not found" % ((group,name),))
ImportError: Entry point ('console_scripts', 'pip') not found

为什么?谢谢.

推荐答案

我删除了setuptools 0.9.4,并执行了"pip install --upgrade setuptools"并正常工作.

I remove setuptools 0.9.4 and do 'pip install --upgrade setuptools' and work good.

这篇关于Pip:ImportError:找不到入口点('console_scripts','pip')的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-30 23:52