How to useAPT package manager in Python

Step 1 : Update package list

To make sure we are getting latest version of python, update package list using apt update command.

sudo apt update -y

updating package list

Step 2 : Install Python 3

Once repositories are up to date, we will install python using apt install command.

sudo apt install python3 -y 

installing python using apt command

Step 3 : Verify installation

Once, installation is done, verify installation using python –version command.

python --version

verifying installation

How to Install Python 3 on Kali Linux

Python 3 is a powerful and versatile programming language widely used for various tasks, from web development to data science, security automation, and AI and ML. Recent versions of Kali Linux come with Python 3 pre-installed. For some reason if you want a different version than the one already installed or you’re using an old version of Kali Linux which doesn’t have python 3 pre-installed. In this article, we will install Python 3 using two methods

Table of Content

  • Method 1 : Using APT package manager
  • Method 2 : Compiling from sources
  • How to Install Python 3 on Kali Linux – FAQs

Similar Reads

Method 1 : Using APT package manager

Step 1 : Update package list...

Method 2 : Compiling from sources

Step 1 : Installing dependencies...

How to Install Python 3 on Kali Linux – FAQs

How do I manage multiple Python versions on my system?...

Conclusion

In this article we have discussed two methods for installing Python 3 in Kali Linux. For most users, the recommended approach is to use the Kali repositories (using APT Package Manager) for ease of installation, compatibility, and regular security updates. However, if you have specific requirements or need to install a development version, compiling from source can be an option....