How Do I Make Python 3 Default in Kali Linux?
Contents How Do I Change the Default Version of Python in Kali Linux? Change Default Python Version in Kali Linux Check Current Python Version: – Python...
Contents
How do I change the default version of python in Kali Linux?
Change default Python version in Kali Linux
- Check current python version : – python –version.
- Login as root user : – sudo su.
- Execute: update-alternatives –install /usr/bin/python python /usr/bin/python3 1.
- Check python version again: python –version.
- Your default python is changed.
Must Read
Does Kali have python by default?
Keeping backwards compatibility in Kali
Given the large number of users that would not know how to avoid the above error, we decided that Kali would continue to ship Python 2 by default (as long as Debian still provides it) and that /usr/bin/python would point to it.