Python-napalm fail to install

i don’t need napalm i just need a way to tell my router to ping and address and give me the results with a python script.
so if there is a different way to do that i would love to hear it.