No module named 'core' when using pyping for Python 3

后端 未结 2 1037
小鲜肉
小鲜肉 2021-01-11 17:18

I am trying to import pyping for Python 3 but I am getting below error:

virt01@virt01:~/Python_Admin$ python3
Python 3.4.3 (default, Oct 14 2015         


        
2条回答
  •  青春惊慌失措
    2021-01-11 18:02

    You can use ping3 library. But it requires root permission on your machine. This link shows the workaround (unprivileged ICMP sockets which allow to use ping without root).

提交回复
热议问题