pypcap
pypcap copied to clipboard
pcap.h not found
tried to download multiple times and getting same error message
C:\Users\liat>py -m pip install pypcap Collecting pypcap Using cached https://files.pythonhosted.org/packages/33/21/d1f24d8a93e4e11bf604d77e04080c05ecb0308a5606936a051bd2b2b5da/pypcap-1.2.2.tar.gz Complete output from command python setup.py egg_info: pcap.h not found
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\liat\AppData\Local\Temp\pip-install-qvt8wp01\pypcap\
Same here
Command "python setup.py egg_info" failed with error code 1
Did you follow the windows specific instructions here: https://github.com/pynetwork/pypcap#installation-from-sources?
(note: you should have in the parent directory a folder called wpdpack
)
python2.7 copy only -->> path_python2\ Library <<-- path_python2\Library\include path_python2\Library\lib
Lib - python2.7 x64 = npcap-sdk-1.01\Lib\ x64 <<--
python2.7 copy only -->> path_python2\ Library <<-- path_python2\Library\include path_python2\Library\lib
Lib - python2.7 x64 = npcap-sdk-1.01\Lib\ x64 <<--
This solves the problem then
error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe' failed with exit status 2
The command didn't succeed because pcap.h is not found.
Try:
sudo apt-get install libpcap-dev
Noting this seems to be similar to issue #35
Won't the solution from #35 work?
@drebbe-intrepid thanks for those instructions. Do you think we should update the readme for windows to include that information? I don't have a windows machine available at the moment (and limited windows experience), but I would be very glad to review and merge a PR!