Cannot install python-pip on Kali Linux

ε祈祈猫儿з 提交于 2020-04-30 06:35:26

问题


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.


回答1:


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.




回答2:


Try running apt-get install python3-pip. This will install pip3 on your machine.



来源:https://stackoverflow.com/questions/61343585/cannot-install-python-pip-on-kali-linux

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!