I'm trying to setup easy_install on my mac.
But I'm getting the following error.

Installing Setuptools running install Checking .pth file support in
  /Library/Python/2.7/site-packages/ error: can't create or remove files
  in install directory
  The following error occurred while trying to add or remove files in
  the installation directory:
[Errno 13] Permission denied:
  '/Library/Python/2.7/site-packages/test-easy-install-789.pth'
The installation directory you specified (via --install-dir, --prefix,
  or the distutils default setting) was:
/Library/Python/2.7/site-packages/
Try curl bootstrap.pypa.io/ez_setup.py -o - | sudo python for access related issues.
setuptools easy_install mac error