Why does a failed installation not work on a Mac?

When I try to install scapy on a Mac, I get this error:

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 

I tried using pip install scapy and pip3 install scapy .

+5
source share
1 answer

To install scapy for python3, you need to run pip3 install scapy-python3 . Just pip3 install scapy install the old 2.x version, which is not compatible with python3.

+8
source

Source: https://habr.com/ru/post/1236525/


All Articles