“I like a girl, but she’s not ready for a relationship”

I have a friend who I have recently really started to like. I have been fighting it for quite some time now. However, I have told her that I like her and she has also told me that she likes me a lot. She will not let herself get into a relationship. She has told me she has this thing, where she requires physical aspects of a relationship, like hugs, cuddling, and kisses, but can’t do a relationship because she will just hurt people.

The part that is hard to swallow is that she can’t pursue someone she really likes, but can have physical relations with basically anyone, just because she needs it. Part of me tells me to just walk away, but I just can’t. She is perfect and there is no one out there like her. Some days I wish I had never even met her because then I could sleep at night. What do I do? Wait until she’s ready? Forget her all together and ruin the friendship? Stay friends and endure pain every time we talk or see each other? Someone please give me some insight…