尝试导入文件扫描器时出现以下错误,可能是什么原因造成的?
from pcapng import scanner
Traceback (most recent call last):
File "pcapng.py", line 1, in <module>
from pcapng import scanner
File "/Documents/script/pcapng.py", line 1, in <module>
from pcapng import scanner
ImportError: cannot import name 'scanner' from 'pcapng'
pip3 install python-pcapng
Requirement already satisfied: python-pcapng in /usr/local/lib/python3.7/site-packages (1.0)
Requirement already satisfied: six in /usr/local/lib/python3.7/site-packages (from python-pcapng) (1.14.0)
谢谢,