I am trying to run the following code but I get a error saying "no module named scapy". I have installed scapy using pip install scapy.
import scapy.all as scapy
def scan(ip):
scapy.arping(ip)
scan("192.168.0.14")
I am trying to run the following code but I get a error saying "no module named scapy". I have installed scapy using pip install scapy.
import scapy.all as scapy
def scan(ip):
scapy.arping(ip)
scan("192.168.0.14")
This is an error that often happens to people that are new to Scapy.
If you are still experiencing this error. please consider trying: pip3 install scapy.all
Then: from scapy.all import scapy, ARP, Ether, srp, arping
what worked for me was, Moving your python file to directory where scapy is installed. I use pycharm and scapy is installed in venv/lib. Make directory there (venv) and continue making python files. it should find scapy