Search code examples
pythonscapy

PyCharm does not import Scapy module


I am trying and failing to import scapy into python, which I have now been playing with for hours and all the google hits I get seem to make sense but when I try them - it fails.

first off I am using python3 and have that nicely in pycharm:

Correct Interpreter

I have also installed the package using pip3:

pip3 install scapy-python3

this appears in PyCharm as you can see in the picture. So I am now on a par with the other guides I found.

So finally I try:

from scapy import *

and for good measure

from scapy.all import *

which is for Python2 and 3k from what I read.

Could someone give me a hand, I don't know where to go next.

Gareth


Solution

  • Scapy-python3 is a different and outdated project.

    The correct way to install scapy on python 3 is

    pip3 install scapy
    

    Or

    python3 -m pip install scapy