OP, the reality is you may be a person who comes off as needy. This will push both males and females away from you because once someone can sense that you "need" them for your happiness, you become less "attractive" so to say. This is something I am also currently dealing with and after the love of my life left me out of nowhere, I started to research why this happens. After almost 3 years of our relationship she suddenly just couldnt love me anymore, and this didnt make any sense to me. I found that I was too dependent on her for my own happiness, and it pushed her away over time. My advice is learn to love yourself, and not rely on any other person to make you happy. It sounds so strange because its not a bad thing to enjoy being with other people but if you solely rely on that, it makes things worse. I may not be explaining this correctly or in a clear way, but I recommend checking out this youtube channel below. There are lots of good videos that can help: