python 安装pypcap

来源:互联网 发布:js internal 编辑:程序博客网 时间:2024/06/15 15:20

安装pypcap 是提示

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-1WEYyQ/pypcap/

这是由于缺少组件

centos
yum install python-devel
yum install libpcap-devel

ubuntu
apt-get install python-devel
apt-get install libpcap-devel

在执行

pip install pypcap

原创粉丝点击