Having upgraded the version of python on my Mac OS X 10.6.8 from python 2.6 to python 2.7.10 I am getting the following error when I try to run pip commands in bash:
error –bash: pip: command not found
I have tried installing pip with the command:
sudo easy_install pip
… but am getting the error
python version 2.7.10 can't run /usr/bin/easy_install. Try the alternative(s):
/usr/bin/easy_install-2.5 (uses python 2.5)
/usr/bin/easy_install-2.6 (uses python 2.6)
The problem is I removed these versions of python from my Mac when I updated to 2.7.10
Could anyone please suggest a solution that would help me to execute pip commands in bash?
** updated to show outputs as requested **
$ echo $PATH
/Library/Frameworks/Python.framework/Versions/2.7/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
$ which -a python
/usr/bin/python
$ which -a pip
# no output
** updated to show further outputs as requested **
$ ls -lh /usr/local/bin/easy_install
lrwxrwxr-x 1 root admin 74B 6 Sep 12:12 /usr/local/bin/easy_install -> ../../../Library/Frameworks/Python.framework/Versions/2.7/bin/easy_install
$ ls -lh $(which python)
lrwxr-xr-x 1 root wheel 67B 6 Sep 12:18 /usr/bin/python -> /System/Library/Frameworks/Python.framework/Versions/2.7/bin/python
$ less /usr/local/bin/easy_install
/usr/local/bin/easy_install: No such file or directory