4 ms·
master>python idiocy.py Traceback (most recent call last): File "idiocy.py", line 2, in <module> import getopt, sys, pcap, dpkt, re, httplib,
by deathbob 16y ago
master>python idiocy.py
Traceback (most recent call last):
File "idiocy.py", line 2, in <module>
import getopt, sys, pcap, dpkt, re, httplib, urllib
ImportError: No module named pcap
Is there a python equivalent to RubyGems ?
- BrianLy 16y agoDistribute. See http://python-distribute.org/pip_distribute.png http://python-distribute.org/pip_distribute.png
- tibbon 16y agoNope. $pip install python-dpkt && pip install libpcap && pip install python-pcap Downloading/unpacking python-dpkt Could not find any downloads that satisfy the requirement python-dpkt No distributions at all found for python-dpkt Storing complete log in /Users/davidfisher/.pip/pip.log
- deathbob 16y agoYeah how do you use this? I see pcap here http://pypi.python.org/pypi/pcap/1.1 http://pypi.python.org/pypi/pcap/1.1 but can't seem to install it. master>pip install pcap Downloading/unpacking pcap Could not find any downloads that satisfy the requirement pcap No distributions at all found for pcap Storing complete log in /Users/bob/.pip/pip.log
- aiurtourist 16y agoGrab the tarball from http://downloads.sourceforge.net/project/pylibpcap/pylibpcap/0.6.2/pylibpcap-0.6.2.tar.gz http://downloads.sourceforge.net/project/pylibpcap/pylibpcap... and then "pip install pylibpcap-0.6.2.tar.gz" You'll need the Apple Developer tools / XCode first.