There is so much here to think about. You can’t force yourself to have charity (the pure love of Christ), but you can teach yourself how to be patient, school yourself not to envy, learn to think of others first, and to enjoy spending time in the truths of the scriptures.
I think as we learn to earnestly live the qualities of charity, then Heavenly Father is more likely to bless us with the gift of charity. But I think we have to really want it. I think that charity may not be one of the most “convenient” gifts to have, since committing to put yourself in service to God and others generally requires willing sacrifice. And that is probably the most important thing to try and learn.
45 And charity suffereth long, and is kind, and envieth not, and is not puffed up, seeketh not her own, is not easily provoked, thinketh no evil, and rejoiceth not in iniquity but rejoiceth in the truth, beareth all things, believeth all things, hopeth all things, endureth all things. 46 Wherefore, my beloved brethren, if ye have not charity, ye are nothing, for charity never faileth. Wherefore, cleave unto charity, which is the greatest of all, for all things must fail 47 But charity is the pure love of Christ, and it endureth forever; and whoso is found possessed of it at the last day, it shall be well with him. 48 Wherefore, my beloved brethren, pray unto the Father with all the energy of heart, that ye may be filled with this love, which he hath bestowed upon all who are true followers of his Son, Jesus Christ; that ye may become the sons of God; that when he shall appear we shall be like him, for we shall see him as he is; that we may have this hope; that we may be purified even as he is pure. Amen. https://www.lds.org/scriptures/bofm/moro/7?verse=45-48&lang=eng#p45