Installing Scapy on a Mac: “ImportError: No module named pcapy”

扶醉桌前 提交于 2019-12-05 13:30:40
Yoel

Try installing libpcap and its Python wrapper from source, as listed here, though the latest version is 0.6.4 and not 0.6.2:

$ wget http://dfn.dl.sourceforge.net/sourceforge/pylibpcap/pylibpcap-0.6.4.tar.gz
$ tar xfz pylibpcap-0.6.4.tar.gz
$ cd pylibpcap-0.6.4
$ sudo python setup.py install

I had the same problem. I solved this using following steps:

1.) Open terminal and enter the command

sudo pip install --user pcapy

2.) Enter

python

in your terminal

3.) Enter the command

import pcapy

This should fix your problem.

Best regards, Nazar Medeiros

Download the latest version of pcapy from this link https://www.coresecurity.com/corelabs-research/open-source-tools/pcapy

Unpack it and from the directory run the following command:

python setup.py install
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!