I have no desire for women. This may be a strange thing to say, but I feel no sexual desire for them. I do not feel sexual desire for men either. This may be due to my condition and the medications I’m on, or perhaps a natural predisposition to have no sexual attraction. The Quran describes such people:
And tell the believing women to lower their gaze and guard their chastity, and not to reveal their adornments except what normally appears. Let them draw their veils over their chests, and not reveal their ?hidden? adornments except to their husbands, their fathers, their fathers-in-law, their sons, their stepsons, their brothers, their brothers’ sons or sisters’ sons, their fellow women, those ?bondwomen? in their possession, male attendants with no desire, or children who are still unaware of women’s nakedness. Let them not stomp their feet, drawing attention to their hidden adornments. Turn to Allah in repentance all together, O believers, so that you may be successful.
Quran 24:31

I feel that I am the male with no desire. I do not feel happy when I am with a woman for romantic or sexual purposes. I feel that if I were to marry a woman, she would not feel satisfied with me sexually or romantically. I know the Prophet Muhammad(pbuh) has said marriage is very important. But I feel that I would be very unhappy in one. Not because I want to be free as a single man, but to not have unhappiness in a relationship. I don’t like relationships at all. I feel that I would disappoint my potential spouse if I were in such a marriage.
Now that I feel that marriage may not be possible, I still have libido. This libido is not towards any women, only very general. Because I can’t get married, is it permissible to mastrurbate? As I still have sexual urges, but no sexual desire to be with a woman if that makes sense. I’m also on medication and I have mental conditions that makes me have high libido. Like I said before, I do not direct this libido to any woman or man.

What should I do in such a case?

Masturbation is haram and not allowed in any situation.