There is a small spring under the rear sight. The front is better done with a press ( the correct tool ). If you're installing night sights, they don't really like being hammered on. on
You're spending money on the parts, spend a little more and have them installed correctly.