Constipated 7 week old baby

How can I help my baby poop? She wakes up crying in pain. It’s been almost two days. She is formula fed.