PyCharm does not import Scapy module

Question:

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

Asked By: Owensteam

||

Answers:

In some cases it is better to install scapy package for python2, too; by following command:

pip install scapy

try this.

Answered By: Babak Memar

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
Answered By: Cukic0d
Categories: questions Tags: ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.