2015-11-21 4 views
5

Wenn ich scapy auf Mac versuchen zu installieren, erhalte ich diese Fehlermeldung:Warum schlägt die Installation von Scapy auf dem Mac fehl?

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 

Ich versuchte pip install scapy und pip3 install scapy verwenden.

Antwort

8

Um scapy für python3 zu installieren, müssen Sie pip3 install scapy-python3 ausführen. Nur pip3 install scapy wird alte 2.x-Version installieren, die nicht python3-kompatibel ist.

+0

Vielen Dank! Es ist Arbeit! – Zept