Always pick up a pumpkin from the bottom.
Never carry it by the stem, as this might damage the pumpkin around the stem and maybe even cause it to break off.
Once you pick it up, notice how it feels. A pumpkin that has a good, solid weight is more likely to be healthy all over. However, a pumpkin that appears oddly lightweight and hollow might just be rotting on the inside.