I got them after labor with my daughter and I bought a cream from the dollar store that worked good.
This sounds kind of awkward and gross but a friend suggested it to me, and it helped a lot.. Get a hot, damp wash cloth, roll it up and stick it in between the cheeks for about 10 minutes. It helps soothe the pain, although it won't really take it away. But I agree with tlynn to talk to your OB about different creams and what not you could get. Also, make sure to be drinking plenty of water and eating fiber so going #2 won't be so difficult.
I did with my first. You can talk to your OB they can give you a cream and give you comfort suggestions. Ibought a pregnancy donut thing it helped so much trying to sit until they went away