安装:
安装scapy前需安装python-pip
[root@ansible soft]#yum install gcc gcc-c++ -y
[root@ansible soft]# wget https://www.python.org/ftp/python/3.6.1/Python-3.6.1.tar.xz
[root@ansible soft]# tar xvf Python-3.6.1.tgr
[root@ansible soft]# cd Python-3.6.1/
[root@ansible Python-3.6.1]# ./configure
[root@ansible Python-3.6.1]# make
[root@ansible Python-3.6.1]#make install
安装epel-release和python-pip
yum install epel-release
yum install -y python-pip
https://msd.misuland.com/pd/3070888491219948678
如果提示epel-release已安装,但python-pip仍然安装失败。
可以尝试:
yum remove epel-release
先卸载epel-release,再重新安装。
其他问题,可尝试升级pip
pip install --upgrade pip
最后
pip install scapy
当然,这种方法也会遇到问题,如果行不通参见:
https://cloud.tencent.com/developer/article/1469149
Centos7安装python3以及Scapy3介绍
yum命令error
https://www.cnblogs.com/Trees/p/7497268.html
其他错误:
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not
https://blog.csdn.net/Pc620/article/details/86163275
./Modules/_ssl.c:64:25: 致命错误:openssl/rsa.h:没有那个文件或目录
yum install openssl-devel