Compression pant


I was told by a doctor to look into compression pants do to muscle pain I’m having in my legs and hips. I am only 5 weeks pregnant and will possibly need them my whole pregnancy. Has anyone had this if so what pants did you get and could they last your whole pregnancy?