impacket install

Try “pip install impacket”

If you don’t have pip installed, see here. This page has moved - pip documentation v23.0