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:
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
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 :
Tags
Android Tutorials
coding
coding on android
Debian
ethical hacking
Kali Linux
Linux
python
Python3