I can't run this code. what is the problem? Can someone help me?

This is my code.
import scapy.all as scapy

def scan(ip):
scipy.arping(ip)

scan(‘192.168.6.2/24’)

####################
And this is error message.

Traceback (most recent call last):
File “network_scanner.py”, line 3, in
import scapy.all as scapy
ImportError: No module named scapy.all

Hello~!

Have you installed the latest version of scapy?

1 Like

Yes, I have installed the latest version of scapy. But same error message show.