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

  1. Check current python version : – python –version.
  2. Login as root user : – sudo su.
  3. Execute: update-alternatives –install /usr/bin/python python /usr/bin/python3 1.
  4. Check python version again: python –version.
  5. Your default python is changed.

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.

Maya Lin-Takahashi

Maya Lin-Takahashi

Consumer Tech & Gadget Reviewer

Maya is a hardware enthusiast who tests and reviews smart home devices, smartphones, wearables, and audio gear. She focuses on practical consumer value and build quality.

Share this article
Twitter Facebook Pinterest