I'm running macOS Sierra and Python 2.7.
In my terminal I've installed scapy with:
pip install scapy
Requirement already satisfied: scapy in /usr/local/lib/python2.7/site-packages
But running this:
from scapy.all import *
for pkt in sniff(iface='en0'):
print pkt
Gives me this:
python test.py
Traceback (most recent call last):
File "test.py", line 1, in <module>
from scapy.all import *
ImportError: No module named scapy.all
I've tried and Google around, and installed pcapy
and other packages - but no luck.