pip and sudo are not on the same path on my machine, so when (basically all the time) I need to run both commands, like so:
sudo pip install xxx
I get:
sudo: pip: command not found
pip downloads packages, but since access is being denied at the end of installation, it ends up failing. 
by doing pip -V, (which pip returns nothing) I get to know where pip is:
pip 1.5.4 from /Library/Python/2.7/site-packages/pip-1.5.4-py2.7.egg (python 2.7)
and by doing sudo bash -c 'echo $PATH',
I get:
/usr/bin:~/bin:/bin:/usr/local/bin:/usr/local/sbin:/Applications/Zed.app/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/local/MacGPG2/bin
I have tried to symlink pip into sudo's directories, like so:
$ sudo ln -s /usr/local/bin/pip /usr/bin/pip, to no avail.
How do I put sudo on the same path? 
 
     
     
     
     
     
     
     
     
    