Use a lower gear. If you don't have one, change a chainring or cassette to get a lower gear.
Carry a water bottle. Stop half way up the hill and have a drink. Wait until you aren't winded anymore to start again. You aren't in a hurry to get up this hill.