How to install python3 And python3-Pip In Kali Linux



Hello everyone, Welcome to Birds in Tech Blog, in today's article I will show you how to install The latest version of python on your Kali Linux system. We don't need to install Python3 in recent updated and full-upgraded Kali Linux. Because Kali Linux 2019.1  comes with Python 3.6 pre-installed. But if we have older version of Kali Then.

 Installing Python3 is very easy. We need to go to the Download section of official Python website. 
Official python website 








Now we click on Download Python 3.x.x (As of this writing, the latest is Python 3.10.5) and download the tar.xz compressed file.

Extracting the file :

After finishing the download we open our file manager and extract the compressed file to our desktop, by right-clicking the file and click on "extract to" and when a new window pops up we're going to click on Desktop and there we will extract our python3 Folder.
Extraction of tarball

After extraction, we need to open the terminal and navigate to the desktop directory by using following command:
  • cd Desktop 
You should see a file named Python-3.x.x.tar.xz
Here 3.x.x. is representing our downloaded recent version of Python.
Now we go to the folder Python3.x.x by applying following command :
  • cd python3.x.x
Then we need to configure the Python3 before install. So we configure it by using following command:
  • ./configure
The screenshot is following:
Python3 configuration 

Then we need to run make to compile the Python source before install.
  • make
It will take a little time. 
Then we can install Python3.x.x by using following command:
  • make install
This will take time. So sit back and share our this post to friends.
When this process will complete we will check the version of python3 by using following command:
python3 --version
The following screenshot shows that we have Python version 3.10.5.
pyhton 3.10.5 in Kali Linux


When we need to use Python 3 we type python3 in our Kali Linux terminal.
Python 3.6 is pre-installed in newer Kali Linux system. But by default pip3 is not there to install pip3 run following command :
  • apt-get install python3-pip

WATCH THE VIDEO HERE : 

Post a Comment

Previous Post Next Post