Python Ubuntu 14.04上的scapy导入错误

Python Ubuntu 14.04上的scapy导入错误,python,python-3.x,ubuntu,scapy,Python,Python 3.x,Ubuntu,Scapy,我对在python代码中使用scapy作为包很感兴趣。 我按照说明安装了它,下面是我的python代码(实际上这是另一个网站的代码): 我得到以下错误: “导入错误:没有名为'scapy'的模块” 不过,我在之前的帖子中看到了答案,就我而言: -Scapy已安装: armand@ACPC:~$ sudo apt-get install python-scapy [sudo] password for armand: Reading package lists... Done Building

我对在python代码中使用scapy作为包很感兴趣。 我按照说明安装了它,下面是我的python代码(实际上这是另一个网站的代码):

我得到以下错误: “导入错误:没有名为'scapy'的模块” 不过,我在之前的帖子中看到了答案,就我而言: -Scapy已安装:

armand@ACPC:~$ sudo apt-get install python-scapy
[sudo] password for armand: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
python-scapy is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 169 not upgraded.
-目录/usr/share/pyshared包含scapy:

armand@ACPC:~$ cd /usr/share/pyshared/
armand@ACPC:/usr/share/pyshared$ ls
scapy  scapy-2.2.0.egg-info
armand@ACPC:/usr/share/pyshared$ 
-Scapy在解释器上运行:

armand@ACPC:/usr/share/pyshared$ scapy
INFO: Can't import python gnuplot wrapper . Won't be able to plot.
INFO: Can't import PyX. Won't be able to use psdump() or pdfdump().
WARNING: No route found for IPv6 destination :: (no default route?)
Welcome to Scapy (2.3.1)
>>> 
当我将scapy作为库导入时可能会出现问题,但我不知道它是什么。我正在Ubuntu14.04上运行python3.4。
提前感谢您的帮助

官方的scapy项目只适用于python2.x。这里有一个Python 3端口:

非常感谢您,StephenG!
armand@ACPC:/usr/share/pyshared$ scapy
INFO: Can't import python gnuplot wrapper . Won't be able to plot.
INFO: Can't import PyX. Won't be able to use psdump() or pdfdump().
WARNING: No route found for IPv6 destination :: (no default route?)
Welcome to Scapy (2.3.1)
>>>