Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pip: ImportError: Entry point ('console_scripts', 'pip') not found

Tags:

python

pip

I install pip with:

$ sudo apt-get install python-setuptools, python-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

why?? Thanks.

like image 506
F.N.B Avatar asked Oct 17 '13 13:10

F.N.B


3 Answers

sudo python3 -m pip install --upgrade --force-reinstall pip
may do the trick. Try it

like image 107
Brian Brix Avatar answered Nov 15 '22 20:11

Brian Brix


I was facing almost same error and having python2.7 installed on my mac. I tried sudo python2.7 -m pip install --upgrade --force-reinstall pip and it worked for me. If you have python3 installed then you can try sudo python3 -m pip install --upgrade --force-reinstall pip Hope it will work.

like image 38
Abhinav Verma Avatar answered Nov 15 '22 18:11

Abhinav Verma


you may check the /usr/bin/pip file, if it links to pip2, then change the first line of pip2 from '/usr/bin/python' to '/usr/bin/python2.7' or '/usr/bin/python2.x' matching pip2. If it links to pip3, then change to python3 or the version python3.x matching pip3.

It works for me because I have installed python 2.7 and 3 so and pip. So when I use 'pip' it using python3 as default, which resulting in the same output.

like image 42
hannah Avatar answered Nov 15 '22 19:11

hannah