Installing Scapy
Scapy supports both Python 2.7.x and 3.4+, starting from Scapy version 2.x. However, for versions lower than 2.3.3, Scapy needs Python 2.5 and 2.7, or 3.4+ for versions after that. Since we already installed that latest Python version, it should be fine to run the latest version of Scapy without a problem.
Also, Scapy has an older version (1.x), which is deprecated and doesn't provide support for Python 3 and works only on Python 2.4.
Unix-based systems
To get the latest and greatest version, you need to use python pip:
pip install scapy
The output should look something like the following screenshot:

To verify that Scapy is installed successfully, access the Python console and try to import the scapy
module into it. If no import error is reported back to the console then the installation completed successfully:

Some additional packages are required to visualize the conversation and to capture the packets. Use the following commands depending on your platform to install the additional...