I am not trying to be funny but are you sure that being a pilot is the best career path if you have depression and anxiety?
Will you be OK during spin recovery, stall recovery, crosswind landings, turbulent approaches, night flying, engine failure after take-off, etc. ?
I am not having a go at you, I am genuinely concerned.