错误的解释器:/usr/bin/python3:Kali Linux 上没有这样的文件或目录

bad interpreter: /usr/bin/python3: no such file or directory on Kali Linux

我正在使用 Kali linux。当我尝试 sqlmap 时,我得到了错误

zsh: /usr/bin/sqlmap: bad interpreter: /usr/bin/python3: no such file or directory

似乎不​​存在python3。但是显示的很奇怪。

apt-get install python3
Reading package lists... Done
Building dependency tree       
Reading state information... Done
python3 is already the newest version (3.8.6-1).
0 upgraded, 0 newly installed, 0 to remove and 46 not upgraded.

如何修复和使用 sqlmap?

供参考。

which python
/usr/bin/python
which python2
/usr/bin/python2
which python3
python3 not found
python -V
Python 3.8.6
python2 -V
python 2.7.18
python3 -V
zsh: command not found: python3

您可以创建一个符号 link 将您的 /usr/bin/python 指向 /usr/bin/python3

ln -s /usr/bin/python /usr/bin/python3