4 ms·
$ python idiocy.py Traceback (most recent call last): File "idiocy.py", line 2, in <module> import getopt, sys, pcap, dpkt, re, httplib, urllib ImportErr
by tibbon 16y ago
$ 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
I'm not a python programmer. I don't see anything the equivalent of 'gem' to install modules. Googling isn't helping. Here's what I thought to try so far.
$ easy_install libpcap python-pcap python-dpkt
Searching for libpcap
Reading http://pypi.python.org/simple/libpcap/ http://pypi.python.org/simple/libpcap/
Couldn't find index page for 'libpcap' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading http://pypi.python.org/simple/ http://pypi.python.org/simple/
No local packages or download links found for libpcap
error: Could not find suitable distribution for Requirement.parse('libpcap')