Uninstall all the redundant versions of Python 3.x that you have, then reinstall the only one you want (e.g. python3.9.6).
In the latest version of Kali Linux, all python packages use explicit python3 or python2 interpreter and do not use unversioned /usr/bin/python
at all. Some third-party code is now predominantly python3 based, yet may use /usr/bin/python
.
python-is-python3 (sudo apt install python-is-python3
) is a convenience package which ships a symlink to point the /usr/bin/python
interpreter at the current default python3, but it does not add a symlink to point the /usr/bin/python2
interpreter (which is installed by the python-minimal package) at the current default python3. It may improve compatibility with other modern systems, while breaking some obsolete or third-party software.
python-is-python3 replaces: python, python-is-python2.