Python scapy import error

前端 未结 8 814
小蘑菇
小蘑菇 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:00

    Delete any file named scapy.py

    0 讨论(0)
  • 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.

    0 讨论(0)
提交回复
热议问题