How do you learn necromancy?

That depends for what purpose you wish to use it. Those who do teach it are mostly secretive cults which you probably don't wanna get involved in.