Answer the question
In order to leave comments, you need to log in
How to install NetfilterQueue python module?
I need to install the NetfilterQueue python module, but it gives an error when I download it with the command - sudo pip install NetfilterQueue
error:
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-6qdsv8ud/netfilterqueue_613b4ef3cefc462280236385a608f296/setup.py'"'"'; __file__='"'"'/tmp/pip-install-6qdsv8ud/netfilterqueue_613b4ef3cefc462280236385a608f296/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.
cwd: /tmp/pip-install-6qdsv8ud/netfilterqueue_613b4ef3cefc462280236385a608f296/
Complete output (13 lines):
running bdist_wheel
running build
running build_ext
skipping 'netfilterqueue.c' Cython extension (up-to-date)
building 'netfilterqueue' extension
creating build
creating build /temp.linux-x86_64-3.6
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE= 2 -fPIC -I/usr/include/python3.6m -c netfilterqueue.c -o build/temp.linux-x86_64-3.6/netfilterqueue.o
netfilterqueue.c:437:10: fatal error: libnfnetlink/linux_nfnetlink.h: No such file or directory
#include "libnfnetlink/linux_nfnetlink.h"
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
--------------------------------- -------
ERROR: Failed building wheel for NetfilterQueue
My operating system is linux, pip version 21.1.2, python version 3.9
Answer the question
In order to leave comments, you need to log in
Judging by the error, you must first install the libnfnetlink library on the system.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question