Python MK007  

Python 3- Installation Guide for Kali Linux

How to Install Python Latest Version in in Kali Linux

Hi Geeks,

In this post, am going to show you how to install Python latest version in Kali Linux without any errors (Import error, bash: pip: command not found).

Python 3.9:

Python 3.9.0 is the newest major release of the Python programming language, and it contains many new features and optimizations.

Why Python 3?

Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won’t be maintained after that date. A future version of pip will drop support for Python 2.7.

Python 2.7 Bugs:

Python 2.7 causes lot of bugs due to end of life. Most of the users are encountered by the following two errors.


The ImportError is raised when an import statement has trouble successfully importing the specified module. Typically, such a problem is due to an invalid or incorrect path.

Traceback (most recent call last):
  File "", line 28, in ?
    from toolkit.interface import interface
ImportError: No module named toolkit.interface


When I ran any commends in Linux terminal the UnicodeDecodeError message was showed. It is a python DPKG error. In your system any python packages are missing, then you was encountered by this error. During executing python, you was encountered by this error.

E: problem executing scripts APT::update:post-invoke-success
 file /usr/share/commnd-not-found/CommandNorFound/db/
 UnicodeDecodeError: 'utf-8' code can't decode byte 0xed in position 15: Invalid continuation byte 
E: sub process returned an error code


Python3 Installation:


  • Dowload Python3 and PIP
  • Install the required Libraries
  • Install CSDK and Python SDK installation

Step 1 : Download Python3 and PIP

Open a terminal and run the following commands for installing the latest version of python and pip.

mk007@linuxlia:~$ sudo apt-get install python3-pip

Step 2 : Install the required Libraries

Open a terminal and run the following commands for installing required libraries. This step will prevent you from ImportError.

mk007@linuxlia:~$ sudo pip3 install sgmllib3k
mk007@linuxlia:~$ sudo pip3 install paramiko
mk007@linuxlia:~$ sudo pip3 install httplib2
mk007@linuxlia:~$ sudo pip3 install pyyaml
mk007@linuxlia:~$ sudo pip3 install pytz 
mk007@linuxlia:~$ sudo pip3 install Geohash
mk007@linuxlia:~$ sudo pip3 install python-geohash
mk007@linuxlia:~$ sudo pip3 install deepdiff
mk007@linuxlia:~$ sudo pip3 install pyes

Step 3 : Install CSDK and Python SDK

Open a terminal and run the following commands for installing CSDK and Python SDK.

mk007@linuxlia:~$ wget -O- | sudo apt-key add - 
mk007@linuxlia:~$ wget
mk007@linuxlia:~$ sudo dpkg -i couchbase-release-1.0-6-amd64.deb
mk007@linuxlia:~$ apt-get update 
mk007@linuxlia:~$ pip3 install couchbase


If you have any doubts about this post please leave a comment otherwise ping me in Instagram. Am ready to solve your doubts.

Leave A Comment