I can't import the module "scapy" in my virtual environment.I tried it with python 3.6.9 (which i have to use for my project) and python 3.7. None of them versions did work.
Import variants like
from scapy.all import *
or
import scapy
or
from scapy import IP, sr1, ICMP
all these did not work.
None of the other posts I found solved my problem.
The installation via pip
in the virtual env was successful. After that the module appears in the results of
pip list
I let printed out the paths, which python searches for modules and found, that the path to the scapy module wasn't in it, which is kinda interesting because isn't that the usual way one would expect using virtual envs...?! Anyway, after adding this path:
import syssys.path.append('/home/username/Desktop/environments/my_env/bin/')
it also didn't work, even though the scapy binary is located in the same bin folder as python.
I already tried to reinstall ... basically everything.