Python 安装scapy时出错

Python 安装scapy时出错,python,scapy,python-packaging,Python,Scapy,Python Packaging,好的,我正在尝试为python3安装scapy,但是我遇到了一些问题 当我输入此命令时: pip安装scapy 这是输出: Collecting scapy Using cached scapy-2.3.3.tgz In the tar file C:\Users\MYNAME~1\AppData\Local\Temp\pip-oao3meyq- unpack\scapy-2.3.3.tgz the member scapy-2.3.3/README is invalid: unable to

好的,我正在尝试为python3安装scapy,但是我遇到了一些问题

当我输入此命令时: pip安装scapy 这是输出:

Collecting scapy
Using cached scapy-2.3.3.tgz
In the tar file C:\Users\MYNAME~1\AppData\Local\Temp\pip-oao3meyq-
unpack\scapy-2.3.3.tgz the member scapy-2.3.3/README
is invalid: unable to resolve link inside archive
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\Users\MYNAME~1\AppData\Local\Temp\pip-build-
  qjegdxw6\scapy\setup.py", line 36
    os.chmod(fname, 0755)
                       ^
SyntaxError: invalid token

----------------------------------------
 Command "python setup.py egg_info" failed with error code 1 in 
 C:\Users\MYNAME~1\AppData\Local\Temp\pip-build-qjegdxw6\s
 capy\

但是它只是说pip3不是命令,所以我不知道用pip代替pip3做什么

pip install scapy-python3
这对我有用。如果您的计算机上同时安装了python2和python3,则通常使用pip3。它用于区分系统中的不同PIP

pip3.exe将采用python3x/scripts/格式

检查脚本文件夹中是否有pip3.exe可用。
如果上述解决方案不适用于您,请尝试提供正确的pip.exe的完整路径。

确保正确安装了pip3
pip install scapy-python3