Skip to content

Compiling Pcapy on Windows Guide

Andrés Blanco edited this page May 22, 2015 · 1 revision

  • Install WinPcap

  • Install Python

  • Install Microsoft Visual C++ Compiler for Python 2.7

  • Modify the include_dirs variable in the pcapy setup.py file, setting it to the path where the WinPcap Developer's Pack include directory is located

  • Modify the library_dirs variable in the pcapy setup.py file, setting it to the path where the WinPcap Developer's Pack lib directory is located
  • x64

  • x86

  • Execute Microsoft Visual C++ Compiler for Python 2.7 Command Prompt
  • x64

  • x86

  • Build pcapy, executing the following command:

python setup.py build_ext

  • Install pcapy, executing the following command:

python setup.py install

  • Test pcapy

import pcapy;pcapy.findalldevs()

Clone this wiki locally