ok, no problem:
k_mikhail@linux-mk500:~> sudo pip3 install pcapy
root's password:
Collecting pcapy
Using cached pcapy-0.10.10.tgz
Installing collected packages: pcapy
Running setup.py install for pcapy ... error
Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-yomf5raj/pcapy/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('
', '
'), __file__, 'exec'))" install --record /tmp/pip-fvuj2oe0-record/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_ext
building 'pcapy' extension
creating build
creating build/temp.linux-x86_64-3.4
gcc -pthread -Wno-unused-result -Werror=declaration-after-statement -DNDEBUG -fmessage-length=0 -grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -DOPENSSL_LOAD_CONF -fPIC -I/usr/include/python3.4m -c pcapdumper.cc -o build/temp.linux-x86_64-3.4/pcapdumper.o
pcapdumper.cc:10:20: fatal error: Python.h: Нет такого файла или каталога
#include <Python.h>
^
compilation terminated.
error: command 'gcc' failed with exit status 1
----------------------------------------
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-yomf5raj/pcapy/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('
', '
'), __file__, 'exec'))" install --record /tmp/pip-fvuj2oe0-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-yomf5raj/pcapy/
Here is from ALT Linux:
[configurator@server]$ pip show pcapy
---
Name:pcapy
Version: 0.10.10
Location: /usr/lib/python2.7/site-packages
Requires:
That means, that pcapy 0.10.10 can be also successfully installed by simple pip, not pip3, command.