问题
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