Learning guitar hurts.
There's not getting away from it. There's no point in sugar coating it. It takes time to develop calluses on the tips of your fingers. Once you have them then it stops hurting but until you do then it's going to hurt.
Sorry but them's the breaks.
Keep going. It gets better. A lot better.