Cannot install python-pip on Kali Linux

Vishal Pattanaik picture Vishal Pattanaik · Apr 21, 2020 · Viewed 27.5k times · Source

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.

Answer

George Shuklin picture George Shuklin · Apr 21, 2020

There is a high chance python-pip is not available, because 'python' is python2, and python2 is finally dead. Try to install python3-pip.

There is a convention that python without '3' is python2, and it's gonna last like that, I think, forever, due to compatibility reasons.