You can use 'in an effort' and 'in an attempt' here and be correct. Endeavour could be used, but wouldn't sound natural. It's like a more formal word and would tend to be used in a more formal sentence structure e.g.. Endeavouring to lose weight she is willing to do almost anything..