我一直在这个安装疯狂,但似乎没有工作。
Python 3.5安装在“C:\ Program Files(x86)\ Python35-32”下,所以两者之间有空格。
我用两种方法安装scapy:
每个我试图运行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