因此,我想了解Python中的scapy庫並嘗試運行使用scapy的腳本。該腳本導入模塊:'ImportError:No module named dumbnet'when trying to use a script that scapy on OS X
from scapy.all import *
我看到了這一點,當然安裝Scapy的有:
pip install scapy
接下來,我得到了下面的導入錯誤:
ImportError: No module named pcapy
那麼,我決定安裝pcapy pip install pcapy
。它安裝了罰款,但現在我得到的導入錯誤:
ImportError: No module named dumbnet
我無法找到一個名爲dumbnet模塊。有人知道這裏發生了什麼?
這是我第一次搞scapy,並且在啓動的虛擬環境中使用安裝了Python 2.7的Mac。
EDIT1:
以下是完整的錯誤:
Traceback (most recent call last):
File "syn_test.py", line 4, in <module>
from scapy.all import * # The One and Only Scapy
File "/Users/dasComputer/venv_mac/lib/python2.7/site-packages/scapy/all.py", line 16, in <module>
from scapy.arch import *
File "/Users/dasComputer/venv_mac/lib/python2.7/site-packages/scapy/arch/__init__.py", line 79, in <module>
from scapy.arch.pcapdnet import *
File "/Users/dasComputer/venv_mac/lib/python2.7/site-packages/scapy/arch/pcapdnet.py", line 471, in <module>
import dumbnet as dnet
ImportError: No module named dumbnet
你應該接受最多的答案。 – user1767754