Constipation

I’m 6 weeks pregnant and I’m having a lot of bowel problems and it’s vey uncomfortable (constipation, diarrhoea, gas) and I’m wondering how long this is going to last. Is it probably going to last the whole pregnancy or will it calm down a bit later?