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