编译pypcap

1) Download and install MinGW32.
2) add MinGW's "\bin" path to your PATH variable
3) Download winpcap development pack 
http://www.winpcap.org/install/bin/WpdPack_4_0_2.zip. Unzip to c:\WpdPack
4) From pypcap-1.1 directory: 
   > python setup.py config --with-pcap="C:\WpdPack"
   > python setup.py build -cmingw32
   > python setup.py bdist_wininst

The installer will be put into the \dist subdirectory of pypcap.

你可能感兴趣的:(CAP)