Pip error in Python with Homebrew

If you get the following error. Reference to (https://github.com/mxcl/homebrew/wiki/Homebrew-and-Python).

/usr/local/bin/pip:5: UserWarning: Module pkg_resources was already imported from /System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/pkg_resources.pyc, but /Library/Python/2.6/site-packages is being added to sys.path
  from pkg_resources import load_entry_point
/usr/local/bin/pip:5: UserWarning: Module site was already imported from /System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site.pyc, but /Library/Python/2.6/site-packages is being added to sys.path
  from pkg_resources import load_entry_point
Usage: pip COMMAND [OPTIONS]
pip: error: You must give a command (use “pip help” to see a list of commands)

go to your bash_profile page

> echo $PATH

make sure /usr/local/share/python is loaded infront of /usr/local/bin.
You can modify this using by modifying your bash_profile

> open -t ~/.bash_profile

The export path may be like the following. Note that the python share path is loaded before the local bin. Which is something like below.

######
#this is for brew doctor
######
export PATH=”/usr/local/share/python:/usr/local/bin:$PATH:/usr/local/sbin:/usr/local/Cellar/ruby/1.9.3-p194/bin”