For me, I'll never get it from certain people and I have come to terms with that. One thing I know about myself, is I withhold it from those who are so needy for it they become narcissistic about it.
There is a little lady where I work who seeks attention constantly. Many give it to her and I'm glad they do, because I can't. It just irritates me when I pass by and see the puppy dog eyes. I guess it makes me feel manipulated. Then I have to take a look in the mirror, once again and realize I am a manipulator also. If you spot it, you got it.
At this point in time, I am aware of it and work to stop. I realize when I've done it, after the fact and it is so uncomfortable. I think I am this way because of growing up in a household where the more invisible you were, the better off you were.
At the same time, manipulating others for attention is not the way to go. Be yourself and give to others what you need. It will return to you in a natural way, not contrived. Fantasizing the freedom to be myself and let others have the glory.