- Intended Audience :: Information Technology
- Intended Audience :: System Administrators
- Intended Audience :: Telecommunications Industry
- License :: OSI Approved :: GNU General Public License v2 (GPLv2)
- Topic :: Security
- Topic :: System
- Topic :: System :: Networking
- Topic :: System :: Networking :: Monitoring
When you know about this project and you want to new install scapy to support your project or you get trouble as ModuleNotFoundError: No module named "scapy" or ImportError: cannot import name "scapy" in your project, let follow this tutorial to install scapy
In Windows (CMD):
py -m pip --version
In Unix/macOS:
python3 -m pip --version
Ensure pip, setuptools, and wheel are up to date:
In Windows (CMD):
py -m pip install --upgrade pip setuptools wheel
In Unix/macOS:
python3 -m pip install --upgrade pip setuptools wheel
Optional - If you want to install
In Windows (CMD):
- Install virtualenv - if you installed it, please ignore
py -m pip install --user virtualenv
- Create a virtual environment
py -m venv test_scapy_env
- Active the virtual environment
test_scapy_env\Scripts\active
In Unix/macOS:
- Install virtualenv - if you installed it, please ignore
pip3 install virtualenv
- Create a virtual environment
python3 -m venv test_scapy_env
- Active the virtual environment
source test_scapy_env/bin/active
To install scapy on Windows(CMD):
py -m pip install scapy
To install scapy on Unix/macOs:
pip install scapy
Example:
pip install scapy==2.2.0-dev pre-release
Please see the version list below table:
Version | Released date | Command |
---|---|---|
scapy 2.4.5 | 2021-04-19T18:29:34 | Windows: Unix/macOs:
|
scapy 2.4.4 | 2020-09-02T18:20:08 | Windows: Unix/macOs:
|
scapy 2.4.3 | 2019-08-06T23:44:48 | Windows: Unix/macOs:
|
scapy 2.4.2 | 2019-01-10T19:02:19 | Windows: Unix/macOs:
|
scapy 2.4.1 | 2019-01-10T08:10:28 | Windows: Unix/macOs:
|
scapy 2.4.0 | 2018-03-27T09:28:26 | Windows: Unix/macOs:
|
scapy 2.3.3 | 2016-10-18T13:24:44 | Windows: Unix/macOs:
|
scapy 2.3.2 | 2016-01-29T08:51:51 | Windows: Unix/macOs:
|
scapy 2.3.1 | 2014-12-30T20:35:14 | Windows: Unix/macOs:
|
Download the distribution file from scapy-2.4.5.tar.gz or the specific scapy version in the below list of distribution
After that, install by command:
On Windows(CMD):
py -m pip install <path_to_scapy_downloaded_file>
On Unix/macOs:
pip install <path_to_scapy_downloaded_file>
List distribution:
Project link: