Installing pypcap on Windows 10 python 2.7 (64 bit)

后端 未结 2 527
慢半拍i
慢半拍i 2021-01-13 10:14

I\'m trying to install pypcap from: https://github.com/dugsong/pypcap/blob/master/INSTALL#L75

I\'m trying to install it on Windows 10 - 64 bit and python 2.7.11 64 b

2条回答
  •  Happy的楠姐
    2021-01-13 10:54

    1. Unzip the WinPcap Developer pack so that you have C:\WpdPack\Include and C:\WpdPack\Lib

    2. Unzip the pypcap source so that you have C:\pypcap-1.1.4\setup.py

    3. Install the Microsoft Visual C++ Compiler for Python 2.7

    4. Start the relevant cmd prompt for your Python27 bitness from:
      Start -> Programs -> Microsoft Visual C++ Compiler Package for Python 2.7

    5. Install/build pypcap from that cmd prompt with:

        set INCLUDE=%INCLUDE%;c:\WpdPack\Include
        set LIB=%LIB%;c:\WpdPack\Lib
        pushd C:\pypcap-1.1.4
        python setup.py install
    

提交回复
热议问题