-
Notifications
You must be signed in to change notification settings - Fork 105
Compiling Pcapy on Windows Guide
Andrés Blanco edited this page May 22, 2015
·
1 revision
- Download WinPcap (https://www.winpcap.org/install/default.htm)
- Download WinPcap Developer's Pack (https://www.winpcap.org/devel.htm)
- Download Python (x64 or x86) (https://www.python.org/downloads/windows/)
- Download Pcapy (https://github.com/CoreSecurity/pcapy/releases)
- Download Microsoft Visual C++ Compiler for Python 2.7 (http://aka.ms/vcpython27)
- 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()