If you get the bird as young as possible, so it will have more chance to bond with you. It would help if you are the only person it sees for a period of time. Also, birds tend to bond better across the sexes - a female bird will consider herself mated to a man, and a male bird will feel he is paired with a woman.