Python scapy import error

前端 未结 8 818
小蘑菇
小蘑菇 2021-01-17 14:38

If I include following line in my python source file

from scapy.all import *

I get this error

from scapy.all import *
Impor         


        
8条回答
  •  一整个雨季
    2021-01-17 15:01

    I want to contribute to this problem. Watch for files named "scapy" in your directory where u are using your script. I had one named "scapy.py" and obviously python tries to include from ".". I removed script and: import scapy.all import * works fine.

提交回复
热议问题