为什么 scapy 安装在 Mac 上失败?
Why is the scapy installation failing on Mac?
当我尝试在 Mac 上安装 scapy 时,出现此错误:
Collecting scapy
Downloading scapy-2.3.1.zip (1.1MB)
100% |████████████████████████████████| 1.1MB 436kB/s
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 20, in <module>
File "/private/tmp/pip-build-f7vu4fsp/scapy/setup.py", line 35
os.chmod(fname,0755)
^
SyntaxError: invalid token
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/tmp/pip-build-f7vu4fsp/scapy
我尝试使用 pip install scapy
和 pip3 install scapy
。
要为 python3 安装 scapy,您必须 运行 pip3 install scapy-python3
。 pip3 install scapy
将安装旧的 2.x 版本,该版本不 python3 兼容。
当我尝试在 Mac 上安装 scapy 时,出现此错误:
Collecting scapy
Downloading scapy-2.3.1.zip (1.1MB)
100% |████████████████████████████████| 1.1MB 436kB/s
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 20, in <module>
File "/private/tmp/pip-build-f7vu4fsp/scapy/setup.py", line 35
os.chmod(fname,0755)
^
SyntaxError: invalid token
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/tmp/pip-build-f7vu4fsp/scapy
我尝试使用 pip install scapy
和 pip3 install scapy
。
要为 python3 安装 scapy,您必须 运行 pip3 install scapy-python3
。 pip3 install scapy
将安装旧的 2.x 版本,该版本不 python3 兼容。