Search code examples
pythonkali-linux

Cannot install python-pip on Kali Linux


OK so I am a total noob and I just installed Kali Linux. I am trying to install python-pip by command

apt-get install python-pip

and I am getting this output

  Reading package lists... Done
  Building dependency tree       
  Reading state information... Done
  E: Unable to locate package python-pip

I've checked my source /ect/apt/sources.list and it says

deb http://http.kali.org/kali kali-last-snapshot main non-free contrib

I've run apt-get updates several times too and it's not helping. Please help.


Solution

  • 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