kali系统打开某个程序报错/usr/bin/env: ‘python’: No such file or directory

起因是kaili系统的sqlmap版本过低,我重新升级了一下,没成想升级后打开sqlmap就报这个错误。

解决过程也很快,大体分为三步:

1.查看python的版本。

python3 --version 

2.找到python的安装位置。

whereis python

3.为它创建符号链接。

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

具体步骤如下图:

猜你喜欢

转载自blog.csdn.net/qq_53768302/article/details/129447230