Ways to learn Antilife shell on a Necromancy wizard?

Is there a RAW way to learn the spell Antilife shell on a wizard of the necromancy school without taking more than 3 levels of any other class? Any feats or magic items or features that would make that possible? The spell feels like it could be really good on a necromancer.