Cannot Install Python3-Pip on Kali Linux

Cannot install python3-pip on kali linux

First you should check if pip3 is installed on your system . To do so run the following :

pip3 --version

if it's already installed you should get something like :

pip 18.1 from /usr/lib/python3/dist-packages/pip (python 3.7)

in this case pip3 is already installed and you don't need to do anything .

Otherwise python3-pip Package is in kali-rolling repos , And to install it you need to make sure you have kali-rolling enabled in your /etc/apt/sources.list , by running following in your terminal :

echo "deb http://http.kali.org/kali kali-rolling main non-free contrib" | sudo tee /etc/apt/sources.list

apt update && apt upgrade

then finally you can install python3-pip by running :

apt install python3-pip 

This should get python3-pip installed on your kali machine

If for some weird reason this didn't work for you and you needed a quick way to install pip3 on your machine you can download this file : get-pip

Then run this in your terminal :

cd ~/Downloads 

python3 get-pip.py

This should get pip3 installed on your machine , you can check by running pip3 --version

Cannot install python-pip on Kali Linux

At-First Open Your sources.list File With any Editor.

nano /etc/apt/sources.list

and add these Lines.

deb http://http.kali.org/kali kali-rolling main non-free contrib 
deb-src http://http.kali.org/kali kali-rolling main non-free contrib

Not Update and Upgrade Your Kali Linux Using These Commands.

apt-get update
apt-get upgrade

and then Install pip using this command

apt-get install python-pip   #For Python2
apt-get install python3-pip #For Python3

Not able to install python-pip in kali linux 2019.3 vbox amd 64 with apt-get install python-pip

It is better to install it manually.

wget https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python get-pip.py

Remeber to check the python version with python --version to check if that's the one you want. If it prints 2.7 and you want Python 3, your command may be python3

How to install Python 3.6+ version in Kali Linux?

Not all Unix distributions offer all Python versions. It is common to only have one Python 2.7.x version and one or two Python 3.y .

Normally Python 3 has a good ascending compatibility, so a Python 3.9 should run a Python 3.6 without any problem. If you really need a specific version, the desperate way is to get a source distribution from python.org and build it locally. The downside is that this one will not participate in apt version control, so it will not be detected by third party application. But it is the only way I know to have a no longer distribution maintained version.



Related Topics



Leave a reply



Submit