pip升级scapy报错It is a distutils installed project and thus we cannot accurately determine which files

今天在升级scapy的时候遇到的问题,搜索到解决问题的答案,为此记录,感谢博主。
尝试升级

pip install scapy --upgrade

报错

ERROR: Cannot uninstall ‘scapy’. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.

解决方案

python -m pip install --user --upgrade scapy

或者

pip install --ignore-installed scapy

原因:pip版本问题,我的pip版本是19.3.1

pip升级scapy报错It is a distutils installed project and thus we cannot accurately determine which filespip升级scapy报错It is a distutils installed project and thus we cannot accurately determine which files 山脚下的20岁 发布了15 篇原创文章 · 获赞 1 · 访问量 233 私信 关注
上一篇:scapy IPv6 NS NA报文构造


下一篇:使用pcapy或scapy监视自身生成的(HTTP)网络流量