I'm running a simple python script, script.py on MacOS and I receive the error ModuleNotFoundError: No module named 'scapy'. This is what I've done:
Tried importing scapy in the script with:
from scapy import *from scapy.all import *import scapy
Installed scapy with
pip3 install scapy(now returningRequirement already satisfied: scapy in /usr/local/lib/python3.7/site-packages).Tried running my script with:
python3 script.pypython3.7 script.py
Made sure I don't have a file called
scapy.pyin my script's directory.
I've tried everything in these posts and none have worked: 1 2