centos7 安装python-libpcap
1.安装依赖
yum install libpcap libpcap-devel
2.安装python依赖(python3.6以上版本)
$ pip3 install Cython $ pip3 install python-libpcap
3.验证
在python命令行输入一下内容不保存,即安装成功
>>> from pylibpcap.pcap import rpcap
4. 官方文档地址
> https://pypi.org/project/python-libpcap/