我试图导入scapy.all,但是错误地说'wpcap.dll‘不存在。这一切为什么要发生?我相信我下载的东西都是正确的。我把所有东西都保存到一个名为scapy的文件夹中。我从模块ctypes得到了一个ctypes。Python希望我预装一些东西吗?
这是我的错误(我使用了scapy.scapy.all,因为我将它保存到一个文件夹中)
>>> import scapy.scapy.all
WARNING: Windows support for scapy3k is currently in testing. Sniffing/sending/receiving packets should be working with WinPcap driver and Powershell. Create issues at https://github.com/phaethon/scapy
Traceback (most recent call last):
File "<pyshell#12>", line 1, in <module>
import scapy.scapy.all
File "C:\Python34\scapy\scapy\all.py", line 16, in <module>
from .arch import *
File "C:\Python34\scapy\scapy\arch\__init__.py", line 88, in <module>
from .windows import *
File "C:\Python34\scapy\scapy\arch\windows\__init__.py", line 23, in <module>
from scapy.scapy.arch import pcapdnet
File "C:\Python34\scapy\scapy\arch\pcapdnet.py", line 32, in <module>
from .winpcapy import *
File "C:\Python34\scapy\scapy\arch\winpcapy.py", line 26, in <module>
_lib=CDLL('wpcap.dll')
File "C:\Python34\lib\ctypes\__init__.py", line 351, in __init__
self._handle = _dlopen(self._name, mode)
OSError: [WinError 126] The specified module could not be found
>>> 发布于 2015-12-22 04:39:04
确保您已经安装了WinPcap,以便使用替罪羊。
https://stackoverflow.com/questions/34375180
复制相似问题