My personal experience was that receiving a dearth of empathy, and hence having the development of my own stunted, took years to overcome to become a compassionate person.
Which in turn led me to a conscious effort to foster empathy in my three children. Gentle parenting (by no means done so perfectly) was one method I employed.
JM