我已经验证我安装了scapy(运行requirements.txt并安装了scapy)我检查了我的/ usr / share / pyshared文件夹并确保scapy安装到那里。重新安装了scapy,不知道为什么我仍然会收到此错误。我也尝试将我的导入更改为来自scapy.all
的scapy import *答案 0 :(得分:0)
你有什么版本的python? Scapy适用于2.7。如果它不起作用,您应该确保使用pip install安装它:
pip install scapy
导入它的方式也很重要,导入它的方法是:
from scapy.all import *