Python 3.7 Scapy安装失败

问题描述 投票:1回答:1

我试图安装Scapy for Python 3.7。我收到以下错误消息,我无法解释。

使用的命令:pip install scapy

   C:\Users\Frank>Command ""c:\program files (x86)\python37-32\python.exe" -u -c "import setuptools, tokenize;__file__='C:\\Users\\Frank\\AppData\\Local\\Temp\\pip-install-a7qfqmx_\\scapy\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\Frank\AppData\Local\Temp\pip-record-89rwlqnn\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\Frank\AppData\Local\Temp\pip-install-a7qfqmx_\scapy\Command ""c:\program files (x86)\python37-32\python.exe" -u -c "import setuptools, tokenize;__file__='C:\\Users\\Frank\\AppData\\Local\\Temp\\pip-install-a7qfqmx_\\scapy\\setup.py';f=getattr(tokenize,
    'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\Frank\AppData\Local\Temp\pip-record-89rwlqnn\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\Frank\AppData\Local\Temp\pip-install-a7qfqmx_\scapy\

你们中的任何人有类似的问题并找到合适的解决方案吗?

python python-3.x python-2.7 scapy
1个回答
4
投票

更新:自Scapy 2.4.2+以来支持Python 3.7

PyPi版本不支持Python 3.7

你需要在这里使用开发版本:https://github.com/secdev/scapy/archive/master.zip

解压缩并运行python setup.py install

© www.soinside.com 2019 - 2024. All rights reserved.