我想在使用python时编写以太网数据包捕获。我在googling上搜索并发现我应该使用Pcap库或PyShark,但是我尝试导入pcap,它说找不到模块名Pcap,所以我尝试使用PyShark实例,但它在Python上显示如下
Traceback (most recent call last):
File "<pyshell#2>", line 1, in <module>
import pyshark
File "D:\Python27\lib\site-packages\pyshark-0.3.3-py2.7.egg\pyshark\__init__.py", line 1, in <module>
from pyshark.capture.live_capture import LiveCapture
File "D:\Python27\lib\site-packages\pyshark-0.3.3-py2.7.egg\pyshark\capture\live_capture.py", line 1, in <module>
from pyshark.capture.capture import Capture
File "D:\Python27\lib\site-packages\pyshark-0.3.3-py2.7.egg\pyshark\capture\capture.py", line 7, in <module>
import trollius as asyncio
ImportError: No module named trollius关于这个问题,我该怎么办?如何将库导入python?
操作系统是Windows 8.1和Python版本2.7.9
https://stackoverflow.com/questions/28526920
复制相似问题