First you need pip to install new package from pypi.
I used these commands on OS X 10.6 successfully:
sudo easy_install pip sudo pip install whatever