Scapy安装在Windows 7 64位Python 3.5上失败

我一直在这个安装疯狂,但似乎没有工作。

Python 3.5安装在“C:\ Program Files(x86)\ Python35-32”下,所以两者之间有空格。

我用两种方法安装scapy:

  1. pip3安装scapy-python3
  2. 从网站http://www.secdev.org/projects/scapy ,我下载了Scapy-2.3.2的链接,然后编译成python setup.py install(这很可能是因为Python 2,因为它首先失败在fname(chmod,0755),我更正为fname(chmod,0o755),但它期望更多的参数)

每个我试图运行scapyterminal,但无济于事。 它返回以下错误:

python: can't open file 'C:\Program': [Errno 2] No such file or directory 

试着运行下面的代码(想要ping谷歌):

 from scapy.all import sr1,IP,ICMP p=sr1(IP(dst="8.8.8.8")/ICMP()) if p: p.show() 

但是得到以下错误:

 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 "C:\Users\rads x\Desktop\FIX\connectivity.py", line 13, in <module> from scapy.all import sr1,IP,ICMP File "C:\Program Files (x86)\Python35-32\lib\site-packages\scapy\all.py", line 16, in <module> from .arch import * File "C:\Program Files (x86)\Python35-32\lib\site- packages\scapy\arch\__init__.py", line 88, in <module> from .windows import * File "C:\Program Files (x86)\Python35-32\lib\site- packages\scapy\arch\windows\__init__.py", line 23, in <module> from scapy.arch import pcapdnet File "C:\Program Files (x86)\Python35-32\lib\site- packages\scapy\arch\pcapdnet.py", line 32, in <module> from .winpcapy import * File "C:\Program Files (x86)\Python35-32\lib\site-\ packages\scapy\arch\winpcapy.py", line 26, in <module> _lib=CDLL('wpcap.dll') File "C:\Program Files (x86)\Python35-32\lib\ctypes\__init__.py", line 347, in __init__ self._handle = _dlopen(self._name, mode) OSError: [WinError 126] The specified module could not be found 

根据文档scrapy是不支持Windows 3.x由于缺少依赖关系(扭曲)

资料来源: http : //doc.scrapy.org/en/latest/intro/install.html