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.
sudo python3 -m pip install --upgrade --force-reinstall pip
may do the trick. Try it
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With