0

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 returning Requirement already satisfied: scapy in /usr/local/lib/python3.7/site-packages).

  • Tried running my script with:

    • python3 script.py
    • python3.7 script.py
  • Made sure I don't have a file called scapy.py in my script's directory.

I've tried everything in these posts and none have worked: 1 2

user699290
  • 41
  • 1
  • 4

0 Answers0