Exrouble pooping!

Nayeli

My son is 2 months old and has been having troubles pooping since he was about a few weeks Hell cry and scream and lock his knees because he needs to fart/poop any idea what it can be or what I can do to prevent it