i have the same problem ... on ubuntu 20.10. Basicaly the problema was... theres no python2.7 on this release ... i solved doing this steps...
this part ll install general packages for python development tools on default python version... try if is solved ... if not...
1 -
sudo apt-get install python-dev
try install to especifically python version u r using...example if u r using python 3.6 then u ll type "sudo apt-get install python3.6-dev -
y" ...
2 -
sudo apt-get install python3.x-dev -y
if instead not solve the problem try to remake the link on bin python directory doing like this...
3 - rm -rf /bin/python3 && ln -s /usr/bin/python3.x /usr/bin/python3
4 - source ~/.bashrc
5 - sudo apt update -y && sudo apt upgrade -y && sudo apt dist-upgrade -y
sudo apt-get install libpcap-dev libpq-dev -y
libpcap-dev
package. If you specify which Ubuntu version you're running - I can tell you the exact package name. – favorettilibpcap-dev
is a transitional package, so installing it should give you the library that corresponds to you particular version of Ubuntu. – favorettiapt-get install libpcap-dev
and try compiling again. – favoretti