To install or upgrade pip, download get-pip.py from http://www.pip-installer.org/en/latest/installing.html
Then run the following:
sudo python get-pip.py
For example:
sudo python Desktop/get-pip.py
Password:
Downloading/unpacking pip
Downloading pip-1.5.2-py2.py3-none-any.whl (1.2MB): 1.2MB downloaded
Installing collected packages: pip
Successfully installed pip
Cleaning up...
sudo pip install pymongo
Password:
Downloading/unpacking pymongo
Downloading pymongo-2.6.3.tar.gz (324kB): 324kB downloaded
Running setup.py (path:/private/var/folders/0c/jb79t3bx7cz6h7p71ydhwb_m0000gn/T/pip_build_goker/pymongo/setup.py) egg_info for package pymongo
Installing collected packages: pymongo
...