CentOSでpython3系を導入後、scapyをインポートしようとしましたが、インポートができません。
解決策をご存知の方、教えてください。
<環境>
CentOS Linux release 7.9.2009 (Core)
pip -v pip 21.3.1 from /usr/local/lib/python3.6/site-packages/pip (python 3.6)
pip list Package Version ------------- ------- pip 21.3.1 scapy-python3 0.26 setuptools 39.2.0
python3 >>> from scapy.all import * PIP package scapy-python3 used to provide scapy3k, which was a fork from scapy implementing python3 compatibility since 2016. This package was included in some of the Linux distros under name of python3-scapy. Starting from scapy version 2.4 (released in March, 2018) mainstream scapy supports python3. To reduce any confusion scapy3k was renamed to kamene. You should use either pip package kamene for scapy3k (see http://github.com/phaethon/kamene for differences in use) or mainstream scapy (pip package scapy, http://github.com/secdev/scapy). Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/local/lib/python3.6/site-packages/scapy/all.py", line 5, in <module> raise Exception(msg) Exception: PIP package scapy-python3 used to provide scapy3k, which was a fork from scapy implementing python3 compatibility since 2016. This package was included in some of the Linux distros under name of python3-scapy. Starting from scapy version 2.4 (released in March, 2018) mainstream scapy supports python3. To reduce any confusion scapy3k was renamed to kamene. You should use either pip package kamene for scapy3k (see http://github.com/phaethon/kamene for differences in use) or mainstream scapy (pip package scapy, http://github.com/secdev/scapy).
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
退会済みユーザー
2022/05/01 07:59