Install Python3 in Kali Linux

After writing about Ct-Exposer and CMSeeK some comments appearing in our comment box. Some people of us have problem to installing Python3 in their Kali Linux System.
Install Python3 in Kali Linux
Install Python3 in Kali Linux

We don't need to install Python3 in recent updated and full-upgraded Kali Linux. Because Kali Linux 2019.1 is 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.
Download Section of

Now we click on Download Python 3.x.x (As of this writing, the latest is Python 3.7.4) and download the tar.xz compressed file. After finishing the download we open the Terminal window is our Kali Linux system.
We will run a command to check the updates

apt-get update

After updating (if available) we need to go to the Downloads section by using following command:

cd Downloads
Then we type following command:

tar -xvf Python-3.x.x.tar.xz
Here 3.x.x. is representing our downloaded recent version of Python
The screenshot is following:

python3.tar.xz decompressing

Now we got a decompressed folder of Pyhton3.x.x (whenever we wright Python3.x.x the x.x will represents the downloaded version of Python3 for us that is Python 3.7.4).
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:

The screenshot is following:

./configure python3

Then we need to run make to compile the Python source before install.

It will take a little time. The screenshot is following:

python3 make

Then we can install Python3.x.x by using following command:

make install

python3 kali linux 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 -V
The following screenshot shows that we have Python version 3.7.4.

pyhton 3.7.4 in Kali Linux

When we need to use Python 2 we just type python in Kali Linux terminal and when we need Python 3 we type python3 in our Kali Linux system.

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

Install Python3 in Kali Linux Install Python3 in Kali Linux Reviewed by Kali Linux on August 11, 2019 Rating: 5

No comments:

Powered by Blogger.