简体   繁体   中英

scapy not found

I have installed scapy 2.2.0 with macport. I imported it to my python code, following these instructions (from scapy.all import *) And when running my python code I have

from scapy.all import *
ImportError: No module named scapy.all

But when i run scapy in command line it's launch normally.

Any clue?

I believe you may be running into this issue.

Python scapy import error

Try this and let me know if that solves your problem.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM